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

IE7 RetryCancel dialog from close of radwindow , where radwindow is from radwindow which is from aspx

3 Answers 69 Views
Window
This is a migrated thread and some comments may be shown as answers.
Neal
Top achievements
Rank 1
Neal asked on 17 Sep 2008, 09:23 AM
Hi,
hoping you can help please.

Note?: I am using 

function RefreshParentPage()

{

GetRadWindow().BrowserWindow.location.reload();

}

called from function CloseOnReload  (as per Telerik examples), which works fine in all other situations.

Base aspx (AllocatedContacts) loads a rad window (Unallocated Contacts), which loads another radwindow(TabbedCreateContact) which loads another RadWindow (PhotoUpload) which contains an asp FileUpload control.

I browse get the file successfully, and then on closing the last RadWindow(PhotoUpload) ........

I get an IE7 popup dialog,  saying
"To display the webpage again, Internet explorer needs to resnd the Information you've previously submitted. If you were making a purchase ...blah blah

with Retry + Cancel buttons.

Strangely though , if I Go from AllocatedContacts and load RadWindow(TabbedCreateContact) and then to RadWindow PhotoUpload, I browse, get image and close / refresh successfully without the IE7 Popup problem.
and then closing / refeshing down the chain is also fine.
 
 but adding a 3rd radW (as the 1st RadW in the chain), (the rest then remain the same), fails with the  IE7 dialog.

and,..
I do use the following means to close the radwindows. as oppsed to the Telerik example (GetRadWindow().Close(); )..

function CloseOnReload()

{

var myTextField = document.getElementById('UploadBtn')

if(myTextField.value == "Close")

{

alert (

"Refresh and Close");

RefreshParentPage();

window.opener = self;

window.open(

'~/CloseDummyIE7.htm', '_self');

window.close();

}

}


Thanks
Neal

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 17 Sep 2008, 12:21 PM
Hello Neal,

Note that document.location.reload() equals to pressing F5 (refresh) on the page - when you do this, you will send the POSTDATA again and that is why you get the retry message.

If you want to re-load the page without refreshing it, I suggest to use location.href instead of reload.
e.g.
document.location.href = document.location.href;


Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Neal
Top achievements
Rank 1
answered on 18 Sep 2008, 06:56 AM
Hi, 

The point is
a) I want the refresh/reload of the calling radwindow, as the data captured in the next called  rad window must show in the calling form.(also a radwindow)

b) why is it that  all the others work but not a particular instance (same form, same c\ode (javascipt), even called from the same parent ! )  Only difference is the parent of the problem radwindow is called from another radwindow in one instance and from a non-radwindow in another. (which works, reloads / refreshes).

is there a reason that you know of that can influence IE7 in some cases and not others?

thanks
Neal
0
Georgi Tunev
Telerik team
answered on 23 Sep 2008, 08:50 AM
Hi Neal,

If I understand your scenario correctly, you want to refresh a RadWindow from another RadWindow. If this is the case, I would suggest to get a reference to the RadWindow you want to refresh and then to re-set its NavigateUrl property by using the client-side API - oWnd.setUrl(oWnd.get_navigateUrl());. As for getting a reference to the RadWindow from another RadWindow, I suggest to check the following demo:
http://demos.telerik.com/aspnet/prometheus/Window/Examples/CommunicationBetweenRadWindows/DefaultCS.aspx



Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Neal
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Neal
Top achievements
Rank 1
Share this question
or