Forum Moderators: open
I have an online store where you add an item to the basket, and upon doing this it directs you to the basket. You then have AJAX controls to add/remove items, etc, and upon completion I need my page to reload to refresh the page.
But, when I use the code,
window.location.reload ();
It resubmits the POST from the previous page.
To stop it doing this, I used this code,
window.location = '/basket/#';
The # was needed as without it I would be asking the window location to go the same location and it didn't work.
But, this doesn't work in Safari unfortunately.
So, what is the best way for me to reload the page without resubmitting the POST?
Thank you.
this bug is pretty close:
[bugzilla.opendarwin.org...]