Groups | Blog | Home
all groups > flash actionscript > december 2006 >

flash actionscript : How to force IE page refresh?


porch73
12/12/2006 11:29:54 PM
Hello.... I have a link/button in a flash file that when clicked, loads a
cached version of the page (only in IE... in firefox, the latest page is always
loaded). This "page" is a Basket Items page for an online store, so for
example, if I add a product, remove it from the basket, click away and return
to the basket page (via the link in my Flash header), the basket shows the old
page (with the item still in the basket). Is there actionscript or something
that I can add to the link/button that will force the latest page to be loaded?

Thanks!
T.Moeller
12/13/2006 12:00:00 AM
just add a timestamp to the the page

i.e. shoppingcart.html?t=<script
type="text/javascript">document.write("getTime(): "+new
Date().getTime()/1000);</script>

just anything that changes every second will do


[quoted text, click to view]
NoNickNeeded
12/13/2006 4:21:32 PM
Here's how I did it:

In flash, I call an fscommand:
fscommand("reloadPage");

then in my javascript,
function file_DoFSCommand(command, args)
{
if (command == "reloadPage")
{
this.location.reload();
}
}


porch73
12/13/2006 8:24:05 PM
Great! thanks for the help....

AddThis Social Bookmark Button