Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refreshing XML 1

Status
Not open for further replies.

srudin

Programmer
Jan 1, 2002
32
0
0
CH
Hi there

I got a flash-site using XML; the XML is beeing prepared by an ASP-page. That works pretty good so far and looks something like:

myXML = new XML;
myXML.load("...file.asp");

The problem is that the second time I load the XML flash uses the values from the cache and doesn't really reload it!

I first tried to set the http-header of the website to 'expire immediately'; didn't do anything. I then changed the browser (ie6) setting: General, T.I.Files, Setting from 'Automatic' to 'Every time you visit the page': That did it!

But hey: I can't (and don't want) to change the browser settings of all the guests on my website! So what's this: A bug by ie6 (what about other browsers? - just got this one installed)? A bug by the flash plug-in? Or am I just missing something?

Would be glad for any ideas
[sadeyes]sr
 
You need to add a random number to your file call eg :

Code:
myXML = new XML();
myXML.load ("file.asp?noCache=" + random (1000000));
Regards

David Byng

spider.gif


davidbyng@hotmail.com

while (Me < Drunk) {
Beer++
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top