Hi,
Since you are using
private var HTTPService_ url:String = "company.php? ForceIEReload& ms="
+
new Date().getTime( );
at the start of your code, it is being initialized only once. This means that
your string is a constant throughout the program.
That is why IE caches the data.
Instead try the following
private var HTTPService_ url:String = "company.php? ForceIEReload" ;
<mx:HTTPService url="{HTTPService_ url}"
method="POST" id="data"
resultFormat= "e4x" result="xmlResultHandler(event) ;"
fault="xmlFaultHand ler(event) ;">
<mx:request>
<rndParam>{Math.round(Math.random()*1000)}</rndParam>
</mx:request>
</mx:HTTPService>
The text in bold is the additional code you need to add.
Hope this helps
Thanks,
Saagar Shetty.
________________________________
From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf
Of sailorsea21
Sent: Wednesday, October 22, 2008
3:50 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Re:
sailorsea21 - Does anyone know why this code works with Firefox but not with
IE?
I'm using "POST" and a unique string for the
url. See below.
[Bindable]
private var HTTPService_ url:String = "company.php? ForceIEReload& ms="
+
new Date().getTime( );
<mx:HTTPService url="{HTTPService_ url}"
method="POST" id="data"
resultFormat= "e4x" result="xmlResultHa ndler(event) ;"
fault="xmlFaultHand ler(event) ;"/>
What I noticed is that in Firefox, I see the message
"Transferring data from localhost... " appearing at the bottom
left in
the status bar... I can tell that every 30sec it updates whereas in IE,
it always displays "Done"???
I think IE never runs the "updateData" function...?
private function updateData(event: TimerEvent) :void {
data.send();
}
Or maybe it kept the "data.send" values in cache...
Any ideas?
Thanks everyone.
-David
--- In [EMAIL PROTECTED] ups.com,
"Tracy Spratt" <[EMAIL PROTECTED] > wrote:
>
> Sounds like caching to me as well. Are you using "GET" or
"POST"? I
> use post exclusively and have no caching issues. The unique string on
> the url is an accepted solution as well.
>
>
>
> Tracy
Cricket on your mind? Visit the ultimate cricket website. Enter
http://beta.cricket.yahoo.com