radopen() failing in Firefox?

3 posts, 0 answers
  1. Kevin
    Kevin avatar
    28 posts
    Member since:
    Feb 2009

    Posted 28 Apr 2009 Link to this post

    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. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 28 Apr 2009 Link to this post

    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.
  3. Kevin
    Kevin avatar
    28 posts
    Member since:
    Feb 2009

    Posted 28 Apr 2009 Link to this post

    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! :)
Back to Top