AJAX examples are not working. [Solved]

Bugs will be moved here once resolved.

Post » Mon Jan 30, 2012 8:17 am

I want to use ajax to comunicate with server (PHP).
I download the examples and run it. Even I export
it to the server. No reponse when I click the image.
I found that only error message in ajax examples.
Please give me a help!!!curtischan2012-01-30 13:53:08
B
4
G
1
Posts: 22
Reputation: 519

Post » Mon Jan 30, 2012 1:00 pm

AJAX can reach the server. However it can't return the data, why? Please help me !!! I use the newest version R77. Is it a bug?
B
4
G
1
Posts: 22
Reputation: 519

Post » Mon Jan 30, 2012 1:52 pm

[Solved]. Thanks.curtischan2012-01-30 13:53:46
B
4
G
1
Posts: 22
Reputation: 519

Post » Mon Jan 30, 2012 3:44 pm

It would be nice if you posted your solution so other visitors can also find the solution.

In this case I guess it was the cross-domain security restrictions, as described in the AJAX manual entry.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Apr 27, 2012 6:06 pm

I have the same problem, and it would be very nice of you who solved the problem to give us some ideas of what can be problem. I also got answer wen I call the server script itself.(http://misagaja.freehostia.com/ajaks/igre/ajaxexampleGET.php) but my construct program does not take it and use the data? Please help if you can.
B
6
Posts: 1
Reputation: 509

Post » Wed May 02, 2012 6:57 pm

I resolved that problem with a local webserver with apache (I use xampp), I export the project to some folder (/game) in the htdocs of the webserver and add the file for ajax in that same folder (/game), so the url for the request should be like this http://localhost/game/file.php; this is only for testing purposes when I upload the files to the server I change the url for my domain (i.e. http://www.myadomain.com/file.php)
B
3
Posts: 9
Reputation: 443


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests