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

Is there length restriction for setUrl in IE?

1 Answer 54 Views
Window
This is a migrated thread and some comments may be shown as answers.
Baal
Top achievements
Rank 1
Baal asked on 30 May 2013, 04:55 PM
I have  javascript function for opening RadWindow.

function OpenWindow(oWnd, url, width, height) {
    url = url == null ? oWnd.get_navigateUrl() : url;
 
    width = width == null ? oWnd.get_width() : width;
    width = width == null ? 600 : width;
     
    height = height == null ? oWnd.get_height() : height;
    height = height == null ? 600 : height;
 
    oWnd.set_keepInScreenBounds(true);
    oWnd.set_showContentDuringLoad(false);
    oWnd.setSize(width, height);
    oWnd.setUrl(url);
    oWnd.show();
}

I have noticed that radWindow adds the following at the end of the url in the opened RadWindow: &rwndrnd=0.37625581697120214

As long as the length of url is less than 4096 characters, the RadWindow opens and displays the content. But once the length of url including the addon exceeds 4096 characters, the RadWindow opens but stays blank. Checking the propery of the opened blank RadWindow shows about:blank for Address. Note that this happens only in Internet Explorer. It works fine in Firefox.

I am using 2011.3.1305.40.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 04 Jun 2013, 10:45 AM
Hi,

This addition to the query string is added by the ReloadOnShow functionality of RadWindow, if you set the corresponding property to False this parameter will not be appended to the URL. As to the URL length limitation, it is not related to RadWindow but is limitation of Internet Explorer, please see the following article on the subject:
http://support.microsoft.com/kb/208427

Regards,
Dobromir
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Window
Asked by
Baal
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or