|
-
sendAndLoad only works second time around?
Hi,
I'm experiencing strange things using sendAndLoad and would like your thoughts/input on this issue.
For a game I use different ways of getting data:
1. Loading highscores:
xmlHighScore = new XML()
xmlHighScore.load("getHighscore.asp?rndm="+random( 100000));
This works fine! Afterwards I can see the response-file in the cache!
2. The user submits his score to an ASP-page:
saveScore.sendAndLoad("saveScore.asp?rndm=" + random(100000), saveScoreWritten, "post");
This page returns either:
scoreStatus=newScore (score is new) or
scoreStatus=lowerScore (score is lower than score in DB) or
scoreStatus=higherScore (score is higher than score in DB)
The swf file then displays different messages according to the reponse.
On some XP-clients the response isn't recieved in the first session of playing the game. (I can see that the response is not in the cache.) Then trying it out the next day it works fine (the response is now visible in the cache).
Any clues on why this happens?
Brgrds
//poden
-
Hi,
realistically, the response to a POST should never be cached ???
Musicman
-
Hi Musicman,
You can check it out here ...
http://xmas.nozebra.dk/nozebra/
It's in danish but you should be able to found your way around 
Please let me know how your cache behaves?
//poden
BTW: Does your name refer to an instrument or that you like music?
-
Hi,
the server responded with an error 500 (unspecified error on line 87) after reporting newscore (and, obviously, recording the score)
Maybe this is reason for strange behaviour 
BTW: I am involved with print music publishing, even stuff like ancient church music
Musicman
-
Hi Musicman,
That's odd? I have some basic cookiewriting in that line.
line86 // Response.Cookies("clientName")("UserAddress1") = Server.URLEncode(UserAddress1)
line87 // Response.Cookies("clientName")("UserAddress2") = Server.URLEncode(UserAddress2)
Do you get the same error repeatedly? In new sessions too?
How did you record the error? Do you have some sort of software that does the trick?
I appreciate your help very much.
//poden
So you know your way round latin ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|