Close causes page to stop responding

2 posts, 0 answers
  1. Smally
    Smally avatar
    36 posts
    Member since:
    Dec 2005

    Posted 22 Sep 2009 Link to this post

    I have a button that opens a radwindow. The button more or less just tests the user input of a url in a RadWindow.
    Below is the code that is called when the button is clicked. My issue is when the user closes that small RadWindow the page itself stops responding, you can click buttons and such but have no cursor and I can see the page thinking type icon at the top spinning and spinning and just doesn't stop. What is wrong? Why is the page having to think when the window is closed?

     

    function

     

    openNewWindow(testlink)

     

    {

     

    var windowURL = document.getElementById("ctl00$ContentPlaceHolder1$tmcreate$" + testlink).value;

     

     

    if (Left(windowURL, 7) != "http://")

     

    {

     

    var oWnd = radopen("http://" + windowURL, null);

     

    }

     

    else

     

     

     

     

    {

     

    var oWnd = radopen(windowURL, null);

     

    }

     

    }

     

    function Left(str, n)

     

    {

     

    if (n <= 0)

     

     

    return "";

     

     

    else if (n > String(str).length)

     

     

    return str;

     

     

    else

     

     

     

     

     

    return String(str).substring(0,n);

     

    }

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 23 Sep 2009 Link to this post

    Hi Adrienne,

    The code that you posted looks fine so I guess that the problem is somewhere else. Please open a support ticket and send us a small sample project where this issue could be reproduced - we will check it right away.


    Greetings,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top