Game freezing on AJAX request

Get help using Construct 2

Post » Fri Oct 26, 2012 4:07 am

I don't know if this should go in the bug report section, but this is my situation:

I need to do two external AJASX calls. The first one is hardcoded(www.site.com/ajaxForm.php?varA=firstList) That result fills a drop-down box. When the user clicks on a menu item, it's supposed to send another AJAX call (www.site.com/ajaxForm.php?varA=secondList&varB=selectedItemFromFirstStep)In Firebug, I can see that the second URL is being called correctly (I can copy the address and load it in another window), but the entire browser window freezes. Reloading doesn't work. I can only close that window, and open another one.

When I use a project JSON file, the app works correctly, but I need to get the info from a database.

I hope that's enough info. Thanks for your help
B
12
S
3
G
4
Posts: 55
Reputation: 3,186

Post » Fri Oct 26, 2012 4:10 pm

Are there any browser errors when it freezes?
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578

Post » Fri Oct 26, 2012 4:15 pm

There are no errors in the console. The browser complains that the script has stopped responding. I've reproduced the error in a capx - http://dl.dropbox.com/u/12722403/Construct2/JSONbugTest.capx. The only external plugin that I'm using is the comboBox by septeven (http://www.scirra.com/forum/topic46969.html)tnewhook2012-10-26 16:17:18
B
12
S
3
G
4
Posts: 55
Reputation: 3,186

Post » Fri Oct 26, 2012 4:29 pm

I think it had to do with a misconfigured JSON file. I'm going to keep tinkering. Thanks for the help.
B
12
S
3
G
4
Posts: 55
Reputation: 3,186


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Calfuso, ETgirl79, totoe and 21 guests