SOLVED: Endless Loop with AJAX Request

Get help using Construct 2

Post » Wed Nov 04, 2015 10:11 pm

Hello,

I have browser.query, which request the current language (index.html?lang=DE).
After that I compare the variable. If it is 'DE' it should load the file de.xml

So the problem is it don't stop loading this file.
The browser inspector show that the file is loading again and again and don't stop.

Can some one help me finding out where the problem is?

Image


Image


Image
Last edited by zeigewas on Wed Nov 04, 2015 10:52 pm, edited 1 time in total.
B
4
Posts: 12
Reputation: 224

Post » Wed Nov 04, 2015 10:20 pm

You need to put those events as sub-events of the start of layout event. As it is now they will all be run every frame.
B
94
S
33
G
114
Posts: 5,359
Reputation: 73,779

Post » Wed Nov 04, 2015 10:52 pm

Oh... Ok thanks, it works! :)
B
4
Posts: 12
Reputation: 224


Return to How do I....?

Who is online

Users browsing this forum: jezjones24 and 29 guests