A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [Flash 8] XML object: strange IE vs Firefox problem

  1. #1
    Junior Member
    Join Date
    Oct 2005
    Posts
    10

    [Flash 8] XML object: strange IE vs Firefox problem

    I'm using XML objects to pull in data from a MySQL database, via PHP scripts. I've just come across a problem in Internet Explorer, where if I make a change to the database from the Flash movie (eg. add or delete a record), then refresh the database info in the Flash movie by recalling the XMLobject.load method, it still shows the results from before I made the change - ie. if I've just deleted a record, it stills shows in the database query results. The weird thing is, if I test the movie in Firefox (or directly from Flash), the data refreshes fine and it reflects the change I've just made.

    I hope I've explained the problem clearly - I'm getting a bit confused here! Can anyone offer any suggestions? I'm getting a bit desperate as the project deadline is approaching fast!

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    append a variable to your load sequence to force the server to send fresh data -
    verDate = new Date();
    verTime = verDate.getTime();
    my_xml.load("test.xml?vers="+verTime);

  3. #3
    Junior Member
    Join Date
    Oct 2005
    Posts
    10
    Thanks for that - do I need to do anything to my PHP script?

  4. #4
    Junior Member
    Join Date
    Oct 2005
    Posts
    10
    After a bit more research, I found that adding a couple of headers to my PHP script to disable caching does the trick! (Just in case anyone's interested)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center