This is a migrated thread and some comments may be shown as answers.

OnClientClose not called on Firefox

1 Answer 30 Views
Window
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 11 Nov 2008, 05:23 PM
Hi,

I just found out, that th OnClientClose handler is not triggered on firefox. IE and Opera works fine.
Here's an example:
<head runat="server"
    <title></title
    <script type="text/javascript"
        function cclose() { 
            alert(); 
        } 
    </script> 
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="ScriptManager1" runat="server"
    </telerik:RadScriptManager> 
     
    <telerik:RadWindow ID="RadWindow1" runat="server" 
        OnClientClose="cclose" 
        Visible="true" 
        VisibleOnPageLoad="true" 
        Skin="Office2007" 
        KeepInScreenBounds="true" 
        NavigateUrl="http://google.de"
    </telerik:RadWindow> 
    </form> 
</body> 

The alert() popup does not appear on Firefox.
What's the reason for this problem? Is there a fix?

Best regards,
Robert

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 11 Nov 2008, 05:52 PM
Under Firefox alert() will throw a JavaScript error.
Try the same code with alert("1")  instead alert() and everything will be OK.

Also You can try the OnClientClose event at the following online example:
http://demos.telerik.com/ASPNET/Prometheus/Window/Examples/ClientSideEvents/DefaultCS.aspx
Tags
Window
Asked by
Robert
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or