Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cache - a big annoyance

Status
Not open for further replies.

benanderson

Programmer
Nov 26, 2001
3
GB
I worked out how to do what I was rattling on about a few threads ago but now I've got another problem.

I've got the following code on a button in my swf:

on (release) {
loadVariablesNum (" 0, "GET");
}

Basically, test.asp opens a database, finds the user_id and updates field1 to equal whatever number was already in it + 10 (field1 = field1 + 10)

This all works fine - well, the first time it does. If I then press the button again, the database doesn't get updated. If I then delete my temporary internet files and press the button again, it works again.

Any ideas what might be going on, or how to stop whatever's being cached?

Many thanks in advance

Ben
 
The ASP page is being cached - try modifying your call like:

loadVariablesNum (" + Math.random() +"&", 0, "GET");


Just makes the browser think it's a new file.
P.S. I don't know why this thing is putting in that ";" - weird.
 
When posting code... It's allways better to enclose it with a code tag like:

(code) (replace the () with [])
Code:
THIS IS THE CODE... FONT WILL APPEAR DIFFERENT
(/code) (replace the () with [])

This will keep this forum's display from adding unwanted characters!

Regards,
wink4.gif
ldnewbie
 
Well that code formatting looks like crap, hence I don't use it.
 
Active,
Plus niaiseux que ça... Tu meurs!

Regards,
wink4.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top