Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

rating ajaxtoolkit control does not work in firebox but in IE

Posted on 2009-02-12
5
Medium Priority
?
621 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

0
Comment
Question by:san4u49
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:aibusinesssolutions
ID: 23643484
When I visit the page in Firefox, I get the following errors:

this._form is null
theForm is undefined
0
 
LVL 15

Expert Comment

by:aibusinesssolutions
ID: 23643511
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
 

Author Comment

by:san4u49
ID: 23643748
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
 
LVL 15

Accepted Solution

by:
aibusinesssolutions earned 80 total points
ID: 23643802
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
 

Author Closing Comment

by:san4u49
ID: 31546449
Thanks. i got my solution . thanks thanks and thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question