Hello,
I've develope an aplication in Flash MX 2004, using PHP&XML to comunicate the
aplication with the DDBB.
Then, If I load an XML object in flash
XMLObjet.load(....program.php?variables...) all is ok, I've all the data that I
need, but if I change the values in the DDBB and without closing the explorer I
ask again to load the XMLObject, then it returns the same XML.
I've tryed to configure the explorer to ask allways if the document has
changed (in the tools menu, temporary documents or cache) and then it works.
But I need that everytime that I reload the XMLObject, it takes the current
information in the database, not from the cache. And it must work in every
explorer with any configuration.
?Could anybody help me to do that??Does anybody knows how to re-load allways
the information from the dataBase without cache?
Thank's a lot.
Hugo.
andersonsidney - 18 Jun 2005 18:44 GMT
Hello. I think I have read taht you can use META tags in HTML to tell the
browser not to cache the data. Sorry I don't remember the command but it may
be worth a look. I'll try and find the command and post it.
HuguerasVagueras - 19 Jun 2005 11:09 GMT
Thanks, but I'm not using HTML but XML. If you know any tag for XML to tell the
browser not to cache the data it'll be the solution. The HML meta tag, I think
that's not the soolution because i'm not using HTML (only the one that contents
the flash object)...
Thnak you very much.
Hugo.
LuigiL - 20 Jun 2005 14:41 GMT
Your call to the php-script should be unique every time. For instance, generate
a random number and add that number to your query-string. Or use this method
(thanks to David Powers):
"http://www.mydomain.com/program.php?ck="+new Date().getTime()
HuguerasVagueras - 21 Jun 2005 09:36 GMT
Fantastic!!
I think it's the most simple solution for my big problem, but I think it's the
better too!
I'll try and i'll post the result, but i'm sure it'll works perfect.
Thank you very much Luigi. You have saved my neck ;P (I hope)
Sumant Agwekar - 28 Jun 2005 07:07 GMT
I am also facing this problem. Could you get the solution of it. I will appreciated your help.
Thanks
Sumant
LuigiL - 28 Jun 2005 09:32 GMT
Sumant,
You call (in a onLoad handler for your LoadVars-object) to a php-script should be like this:
"http://www.mydomain.com/program.php?ck="+new Date().getTime()