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

Rad window close and refresh parent page

3 Answers 259 Views
Window
This is a migrated thread and some comments may be shown as answers.
Srinivasa Rao Ranga
Top achievements
Rank 1
Srinivasa Rao Ranga asked on 12 Dec 2012, 12:22 PM

Facing issue when trying to close the radwindow and reload of the parent page.
 
Below mentioned is the java function used to reload the parent page. Its is giving the warning[Please find the attachment]

function CloseAndRebind(args) {
//GetRadWindow().BrowserWindow.location.reload();

var oWind = GetRadWindow();
oWind.close();

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

 

//top.location.href = top.location.href;

}


Could you please help me out in resolving this issue, Searched in the forum found the above solution only, but its not working for me.

3 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 12 Dec 2012, 09:55 PM
Hello Srinivasa,

That is the expected message when you try to reload a webpage after a postback occurred on the page. You would get the same warning message if you clicked Refresh in your browser after some control on your page performed a postback.

To resolve this, you can use the following:

GetRadWindow().BrowserWindow.location.href = GetRadWindow().BrowserWindow.location.href;

I hope that helps.
0
Srinivasa Rao Ranga
Top achievements
Rank 1
answered on 13 Dec 2012, 06:04 AM
Hi Kevin,

The solution provided is not working for me, the parent page is not reloading. Could you please let me know if i can try in some other way.

0
rdmptn
Top achievements
Rank 1
answered on 13 Dec 2012, 01:58 PM
Kevin's idea should work...Anyway, you can just add a randon querystring variable at the end to force a refresh. Or use a standard name and replace it to avoid making the URL longer each time.
Tags
Window
Asked by
Srinivasa Rao Ranga
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Srinivasa Rao Ranga
Top achievements
Rank 1
rdmptn
Top achievements
Rank 1
Share this question
or