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

radopen() failing in Firefox?

2 Answers 73 Views
Window
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 28 Apr 2009, 03:05 PM
Got this working as a proof of concept in IE and then jumped over to Firefox and poof... nothing.

I'm opening radwindow from my "a" tags with:

    a href="/" onclick="showDetails(this); return false;">Click Me First!</a>

And my javascript for showDetails is:

  <telerik:radcodeblock id="codeDetails" runat="server">
   <script type="text/javascript">
    function showDetails(link)
    {
     var ownd = radopen(link.href, "prodDetails");
     ownd.show();
    }
   </script>
  </telerik:radcodeblock>

Tried with and without ownd.show()... was just trying to make it all work!

And my radwindowmanager is:

  <telerik:radwindowmanager id="radWindow" runat="server" visible="true" visiblestatusbar="false" height="600" width="500" destroyonclose="true" showcontentduringload="false" behaviors="Close,Move"></telerik:radwindowmanager>

Firefox is 3.0.9.
IE is 7.

What's the trick here?   In Firefox, the link simply changes the current page and no window is opened.

2 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 28 Apr 2009, 04:19 PM
Hi Kevin,

I tried your code but I was not able to reproduce the problem. The code that I used in my page was:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default2" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head id="Head1" runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <asp:ScriptManager ID="ScriptManager1" runat="server"
    </asp:ScriptManager> 
    <href="/" onclick="showDetails(this); return false;">Click Me First!</a> 
    <telerik:RadCodeBlock ID="codeDetails" runat="server"
 
        <script type="text/javascript"
            function showDetails(link) 
            { 
                var ownd = radopen(link.href, "prodDetails"); 
                ownd.show(); 
            } 
        </script> 
 
    </telerik:RadCodeBlock> 
    <telerik:RadWindowManager ID="radWindow" runat="server" Visible="true" VisibleStatusbar="false" 
        Height="600" Width="500" DestroyOnClose="true" ShowContentDuringLoad="false" 
        Behaviors="Close,Move"
    </telerik:RadWindowManager> 
    </form> 
</body> 
</html> 

Could you please open a new support ticket and send us your project? Once we have a better view over your exact setup, we will do our best to provide a solution.

Kind regards,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Kevin
Top achievements
Rank 1
answered on 28 Apr 2009, 04:45 PM
Nevermind... something else is blocking the onclick for javascript.  I made a dummy page with just an onclick in an anchor/link tag and it worked.  So some other javascript or something is blocking.  I hope it's not the radcombobox! :)
Tags
Window
Asked by
Kevin
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or