cpatr
asked on
How to reload opener page from popup with Javascript without Refresh message
I need to reload my parent page after saving information on a popup page without the parent page popping up the IE message "page cannot be refreshed without resending information"
I am currently using
opener.location.reload(1)
Is there another way? Thanks
I am currently using
opener.location.reload(1)
Is there another way? Thanks
Math.random()
typo. The m is a capital M.
typo. The m is a capital M.
ASKER
that gets rid of the pop up, but it does not repost the data that page was receiving. I should have mentioned that in my original question. Sorry
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Unless you can use the GET method instead of the POST method. Depending on the data you sent of course.
ASKER
ok, thank you for your effort. I will just have to pass all my data to the pop up and pass it back. I was just trying to avoid the overhead.
Message "page cannot be refreshed without resending information" appears because you send previosly some information to that page via post method so you must resend it if you want to reload the page.
Try doing just like this and see what you are getting
(code gose instead reload() line)
opener.location.href = opener.location.href
or eventually
var h = opener.location.href
if (h.match("?") h +="&"
else h+="?"
h+="just=change"
opener.location.href = h
Try doing just like this and see what you are getting
(code gose instead reload() line)
opener.location.href = opener.location.href
or eventually
var h = opener.location.href
if (h.match("?") h +="&"
else h+="?"
h+="just=change"
opener.location.href = h
ASKER
I've tried that, it hasn't worked for me....
window.opener.location.rep