RE: [SPAM] [flexcoders] HTTPService Internet Explorer

2010-01-09 Thread Tracy Spratt
This is almost certainly a caching issue.  If you are using GET as the
HTTPService method try POST.  Then if that does not work, you can append
some random string to the url to prevent client side caching.  There will be
many code examples if you search for them.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of criptopus
Sent: Saturday, January 09, 2010 10:55 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] HTTPService  Internet Explorer

 

  


I set up a popup TitleWindow which sets up a HTTPService and do a FindAll, I
listen for the data coming in and then populate my datagrid. I then make
some changes and post them off to the service and then close the popup.

When I open the popup again and the data is re-read in Firefox it is read
correctly as I have changed it but when its run under Internet Explorer it
has not detected the changes.

Checking the database the data has changed.

Why would I.E. not read the changes made but Firefox does?

- Stephen





Re: [SPAM] [flexcoders] HTTPService Internet Explorer

2010-01-09 Thread criptopus
Yup managed to sort it out.

Stuck the time into the URL string to make it unique

var dNoCache:Date = new Date();
params.nocache = dNoCache.getTime().toString();

:)

- Stephen