PDA

View Full Version : Action Scripting with ASP


softballcoach
05-09-2001, 05:43 PM
I am working on dynamic database content in a Flash. I reviewed the popular "employee" sample, and have recreated my prototype quite easily, except.....

Here's the construct: a menu page calls an .ASP page passing an ID (for the database record). The .ASP page sets a session var to this value. It then loads the Flash. The Flash has an action script which calls loadVariablesNum ("getmessage.asp", 0, "GET"). The getmessage.asp file uses the session variable to pull the data from the DB and post back to Flash.

This works great in Netscape. However, in IE, something funny is happening. The first execution works perfectly every time. However, if I click the back button to my Menu and choose a different option (id), the Flash displays the message from the first run. In fact, it never changes the data shown from the first run unless I close my browser.

Any ideas why Flash seems to be caching the data and not calling my getmessage script?

Any insight is most appreciated.

softballcoach

Jesse
05-10-2001, 02:58 AM
IE Caches stuff to easily, checkout this thread for a workaround:

http://www.actionscripts.org/forums/showthread.php3?threadid=1294

Cheers

Jesse

Keywords: cache ie ns clear caching

edeveloper
05-14-2001, 02:34 AM
Response.Buffer = true
Response.Expires = -5000
Response.AddHeader "pragma", "noCache"
Response.CacheControl = "no-cache"