A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: sendAndLoad only works second time around?

  1. #1
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472

    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

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,039
    Hi,

    realistically, the response to a POST should never be cached ???

    Musicman

  3. #3
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472
    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?

  4. #4
    Registered User
    Join Date
    Feb 2001
    Posts
    13,039
    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

  5. #5
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center