How do I change the data in AJAX

Get help using Construct 2

Post » Mon Sep 01, 2014 6:28 pm

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
Current Mission: improve design skills
B
8
S
1
Posts: 57
Reputation: 1,003

Post » Mon Sep 01, 2014 6:36 pm

Cybersurfer5000 wrote: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!
Ajax.JPG
You do not have the required permissions to view the files attached to this post.
B
28
S
8
G
4
Posts: 553
Reputation: 4,924

Post » Tue Sep 02, 2014 1:04 pm

Thx for ur promp help! Let me check if it helps...
Current Mission: improve design skills
B
8
S
1
Posts: 57
Reputation: 1,003


Return to How do I....?

Who is online

Users browsing this forum: matriax, Yahoo [Bot] and 6 guests