How do I change the data in AJAX

  • Hello!

    I have two AJAX actions in the game. Both request the content of a different txt-file. Once the data of the first txt-file has been requested, the second request has no effect. The content is not updated to the content of the second txt-file. The stored content in AJAX remains that of the first txt-file. Does anybody have an idea how to change the data in the AJAX storage?

    Cheers,

    Sophia

  • Hello!

    I have two AJAX actions in the game. Both request the content of a different txt-file. Once the data of the first txt-file has been requested, the second request has no effect. The content is not updated to the content of the second txt-file. The stored content in AJAX remains that of the first txt-file. Does anybody have an idea how to change the data in the AJAX storage?

    Cheers,

    Sophia

    You probably invoke both action almost simultaneously, high chance it won't work. Invoke the ajax action one at a time, see screenshot, this is from my actual project and it works!

    [attachment=0:1agrpyym][/attachment:1agrpyym]

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thx for ur promp help! Let me check if it helps...

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)