We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

rating ajaxtoolkit control does not work in firebox but in IE

san4u49
san4u49 asked
on
Medium Priority
632 Views
Last Modified: 2012-05-06
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

Comment
Watch Question

When I visit the page in Firefox, I get the following errors:

this._form is null
theForm is undefined
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.

Author

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.
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>

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Thanks. i got my solution . thanks thanks and thanks
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.