views:

1412

answers:

3

Hi,

I'm trying to refresh a page without sending POST from the previous time.

I've tried

window.open("postme.php?r=t","_self");

Which appends a ?r=t to the end but it doesn't appear to refresh the page as the page displays a number of file s in a directory which hasn't change even though I have moved or deleted them.

Can you specify the URL in window.location.reload(); ?

Any ideas?

Thanks,

+1  A: 

You could try:

window.location.reload(true); //true sets request type to GET
karim79
that doesn't appear to work...still getting a warning about "Internet Explorer needs to resend the information you've rpeviously transmitted"
thegunner
Have you tried it without true, i.e. window.location.reload() ?
karim79
A: 

Got this to work...

window.location = "postme.php?r=t";

thegunner
+3  A: 

If you want to avoid having refresh reporting data (for any reason, including the user clicking the reload button) then use the POST-REDIRECT-GET pattern.

David Dorward