I have the following function which I use when popup windows are closed (that have been used to edit the data).
Code: Select all
function CloseRefresh() {
window.opener.location.reload();
window.close();
}The following change to the function, seems to combat this:
Code: Select all
function CloseRefresh() {
window.opener.location=window.opener.location;
window.close();
}What I'd like to do is develop a hybrid, something like the following:
Code: Select all
function CloseRefresh() {
if (window.opener.requestmethod=='post') {
window.opener.location=window.opener.location;
} else {
window.opener.location.reload();
}
window.close();
}Cheers