• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 625
  • Last Modified:

rating ajaxtoolkit control does not work in firebox but in IE

hi, please take a look on this page http://www.mybadflight.com/rate_mybadflight.aspx# . this rating is working on IE but not in mozilla. please provide me solution its very urgent now.
<%@ Page Language="VB" MasterPageFile="~/mybadflight.master" AutoEventWireup="false" CodeFile="rate_mybadflight.aspx.vb" Inherits="Rate_mybadflight" title="Rate My Flight" %>
 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
 
<asp:Content id="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">
 
    <link href="rating.css" rel="stylesheet" type="text/css" />
 
					<table style="width: 95%" cellpadding="5" class="style4" align="center">
						<tr>
							<td>&nbsp;</td>
							<td>&nbsp;</td>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td>
                                <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
                                </asp:ScriptManagerProxy>
                                <asp:Panel ID="openPanel" runat="server">
                                </asp:Panel>
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                         <table style="text-align:left; width:550px;">
                                    <tr>
                                        <td class="style33">
                                            Type of Flight
                                        </td>
                                        <td >
                                            <asp:DropDownList ID="airlinetypelst" runat="server" AutoPostBack="True">
                                                <asp:ListItem Value="0" Selected="True">Domestic</asp:ListItem>
                                                <asp:ListItem Value="1">International</asp:ListItem>
                                            </asp:DropDownList>
                                            </td>
                                    </tr>
                                     <tr>
                                        <td class="style33">
                                            Airline:
                                        </td>
                                        <td >
                                            <asp:DropDownList ID="airlinelst" runat="server">
                                            </asp:DropDownList>
                                            </td>
                                    </tr>
                                    <tr>
                                        <td class="style33">
                                            Class:
                                        </td>
                                        <td >
                                            
                                            <asp:DropDownList ID="classlst" runat="server">
                                                <asp:ListItem Value="0">Coach</asp:ListItem>
                                                <asp:ListItem Value="1">First</asp:ListItem>
                                                <asp:ListItem Value="2">Business</asp:ListItem>
                                            </asp:DropDownList>
                                            
                                            </td>
                                    </tr>
                                    <tr>
                                        <td class="style33">
                                            Delayed:
                                        </td>
                                        <td >
                                            <asp:DropDownList ID="delayedlst" runat="server">
                                                <asp:ListItem Value="0">No</asp:ListItem>
                                                <asp:ListItem Selected="True" Value="1">Yes</asp:ListItem>
                                            </asp:DropDownList>
                                            </td>
                                    </tr>
                                    <tr>
                                        <td class="style33">
                                            Crew: 
                                        </td>
                                        <td >
                                            
                                           
                                            
                                            <cc1:Rating ID="crew" runat="server" 
        EnableViewState="true" 
        MaxRating="5" 
		 CssClass="ratingStar"
		CurrentRating="0"
        StarCssClass="ratingItem"
        WaitingStarCssClass="Saved"
        FilledStarCssClass="Filled"
        EmptyStarCssClass="Empty"
		ReadOnly="False"
        Visible="true" AutoPostBack="true"  >
        </cc1:Rating>
                                            
                                            
                                            </td>
                                    </tr>
                                    <tr>
                                        <td class="style33">
                                            Food:
                                        </td>
                                        <td >
                                         <cc1:Rating ID="food" runat="server" 
        EnableViewState="true" 
        MaxRating="5" CurrentRating="0"
        CssClass="ratingStar"
        StarCssClass="ratingItem"
        WaitingStarCssClass="Saved"
        FilledStarCssClass="Filled"
        EmptyStarCssClass="Empty"
		ReadOnly="False"
        AutoPostBack="true"  >
        </cc1:Rating>
                                           </td>
                                    </tr>
                                    <tr>
                                        <td class="style33">
                                            Cleanliness:
                                        </td>
                                        <td >
                                     <cc1:Rating ID="clean" runat="server" 
        EnableViewState="true" 
        MaxRating="5" CurrentRating="0"
        CssClass="ratingStar"
        StarCssClass="ratingItem"
        WaitingStarCssClass="Saved"
        FilledStarCssClass="Filled"
        EmptyStarCssClass="Empty"
		ReadOnly="False"
        AutoPostBack="true"  >
        </cc1:Rating>
                                            </td>
                                    </tr>
                                    <tr>
                                        <td class="style33">
                                            Comfort:
                                        </td>
                                        <td >
                                        <cc1:Rating ID="comfort" runat="server" 
        EnableViewState="true" 
        MaxRating="5" CurrentRating="0"
        CssClass="ratingStar"
        StarCssClass="ratingItem"
        WaitingStarCssClass="Saved"
        FilledStarCssClass="Filled"
        EmptyStarCssClass="Empty"
	ReadOnly="False"
        AutoPostBack="true"  >
        </cc1:Rating>
                                           </td>
                                    </tr>
                                    <tr>
                                        <td class="style33">
                                            Amenities:
                                        </td>
                                        <td >
                                           <cc1:Rating ID="amenities" runat="server" 
        EnableViewState="true" 
        MaxRating="5" CurrentRating="0"
        CssClass="ratingStar"
        StarCssClass="ratingItem"
        WaitingStarCssClass="Saved"
        FilledStarCssClass="Filled"
        EmptyStarCssClass="Empty"
		ReadOnly="False"
       AutoPostBack="true"  >
        </cc1:Rating>
                                           </td>
                                    </tr>
                                    <tr>
                                        <td class="style33">
                                            Customer Service:
                                        </td>
                                        <td >
                                          <cc1:Rating ID="customerservice" runat="server" 
        EnableViewState="true" 
        MaxRating="5" CurrentRating="0"
        CssClass="ratingStar"
        StarCssClass="ratingItem"
        WaitingStarCssClass="Saved"
        FilledStarCssClass="Filled"
        EmptyStarCssClass="Empty"
		ReadOnly="False"
      AutoPostBack="true" 
	  >
        </cc1:Rating>
                                            </td>
                                    </tr>
                                    <tr>
                                        <td class="style33">
                                            Overall:
                                        </td>
                                        <td >
                                            <cc1:Rating ID="overall" runat="server" 
        EnableViewState="true" 
        MaxRating="5" CurrentRating="0"
        CssClass="ratingStar"
        StarCssClass="ratingItem"
        WaitingStarCssClass="Saved"
        FilledStarCssClass="Filled"
        EmptyStarCssClass="Empty"
		
         AutoPostBack="true"  >
        </cc1:Rating>
                                            </td>
                                    </tr>
                                             <tr>
                                                 <td class="style33">
                                                     Flight Number(Not Required):
                                                 </td>
                                                 <td>
                                                     <asp:TextBox ID="flightNumberBox" runat="server"></asp:TextBox>
                                                 </td>
                                             </tr>
                                    <tr>
                                    <td class="style33">
                                        <asp:Button ID="SubmitBtn" runat="server" Text="Rate My Flight" />
                                    </td>
                                    <td >
                                       
                                        <asp:Label ID="errorLabel" runat="server"></asp:Label>
                                       
                                    </td>
                                    </tr>
                                </table>
                                    </ContentTemplate>
                                
                               
                                </asp:UpdatePanel>
							
                            </td>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td>
                                <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
                            </td>
							<td>&nbsp;</td>
						</tr>
					</table>
 
	
 
 
 
</asp:Content>
<asp:Content id="Content2" runat="server" contentplaceholderid="head">
	
 
 
    <style type="text/css">
        .style33
        {
            width: 178px;
        }
    </style>
	
 
 
</asp:Content>

Open in new window

0
san4u49
Asked:
san4u49
  • 3
  • 2
1 Solution
 
aibusinesssolutionsCommented:
When I visit the page in Firefox, I get the following errors:

this._form is null
theForm is undefined
0
 
aibusinesssolutionsCommented:
I'm guessing it is probably a case sensitive issue. Firefox is case sensitive when it comes to the getElementById javascript function.  If you have something defined as "divLayer", but reference it as getElementById("divlayer"), it would work in IE, but not Firefox.
0
 
san4u49Author Commented:
Thanks. it is code of a sinlge rating option

 <cc1:Rating ID="crew" runat="server"
        EnableViewState="true"
        MaxRating="5"
             CssClass="ratingStar"
            CurrentRating="0"
        StarCssClass="ratingItem"
        WaitingStarCssClass="Saved"
        FilledStarCssClass="Filled"
        EmptyStarCssClass="Empty"
            ReadOnly="False"
        Visible="true" AutoPostBack="true"  >
        </cc1:Rating>

i hv checked all name and ID.  this is ajax toolkit control actully.please help me to resolve this. i tried to check out it. i can provide more also if u need.
0
 
aibusinesssolutionsCommented:
I think I see the problem.

It looks like the <form> tag comes before the <body> tag, and it shouldn't.  I think for some reason Firefox is looking for aspnetForm inside the <body> tag and can't find it, because it isn't there.

The correct formatting is
<html>
<head></head>
<body>
<form>
</form>
</body>
</html>
0
 
san4u49Author Commented:
Thanks. i got my solution . thanks thanks and thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now