Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / October 2005



Tip: Looking for answers? Try searching our database.

XML content does not refresh

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
delali - 19 Oct 2005 15:20 GMT
I have  a Flash movie wich displays information from some xml files. Whenever I
upload changes in the xml files, it is not displayed in the Flash movie, even
if I force the refresh of the page the old content is still displayed. The only
way I could display the new content in Explorer is by displaying the content of
the xml file in the browser and forcing the refresh of the file.

Does someone have an answer?
Jon Parkhurst - 19 Oct 2005 17:20 GMT
Try blowing yoru cache, then refreshing the page, you should see your new
xml results.  It's not flash caching, it's your browser.  Because of the
strange way the xml file is requested, it's not automatically updated.

You need to use a random variable to call your xml file.  For example, the
below code is what I have to input a random variable into my xml file
request

//Create a unique variable
varUnique=new Date().getTime() //will always be unique

// Activate the XML object
headlineXML = new XML();

//Load xml
headlineXML.onLoad = myLoad;

//Associate unique variable with xml/php file request name to fool brosers
headlineXML.load("common/news.php?varUnique="+varUnique);

HTH,

Jon Parkhurst
PriivaWeb
http://priiva.net

>I have  a Flash movie wich displays information from some xml files.
>Whenever I
[quoted text clipped - 7 lines]
>
> Does someone have an answer?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.