Re: Unresponsive script in Firefox

  •  01-16-2007, 4:16 PM

    Re: Unresponsive script in Firefox

    I got some code. See if you can get the unresponsive error under Firefox 2.0 or 1.5?

     
    <%@ Page Language="C#" %>

    <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">

    public void ValidateCheckbox(object source, ServerValidateEventArgs arguments)

    {

    arguments.IsValid = true; // always true

    }

    </script>

    <html xmlns="http://www.w3.org/1999/xhtml" >

    <head runat="server">

    <title>Untitled Page</title>

    </head>

    <body>

    <form id="form1" runat="server">

    <div>

    <asp:LinkButton ID="LinkButton1" runat="server">Click To Test For Bug</asp:LinkButton>

    First of Two Instances of Cute Editor

    <br />

    <CE:Editor ID="Editor1" runat="server" Text="Contents should not matter" Width=300 Height=300>

    </CE:Editor>

    <br />

    <CE:Editor ID="Editor2" runat="server" Text="Contents should not matter" Width=300 Height=300>

    </CE:Editor>

    <asp:CheckBox ID="CheckBox1" runat="server" Text="A Checkbox To Validate" />

    <asp:CustomValidator ID="MyCustomValidator" runat="server" ErrorMessage="Not really important." OnServerValidate="ValidateCheckbox" Display="None"></asp:CustomValidator>

    </div>

    </form>

    </body>

    </html>

View Complete Thread