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

Close causes page to stop responding

1 Answer 54 Views
Window
This is a migrated thread and some comments may be shown as answers.
Smally
Top achievements
Rank 1
Smally asked on 22 Sep 2009, 02:24 PM

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);

 

}

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 23 Sep 2009, 11:10 AM
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.
Tags
Window
Asked by
Smally
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or