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!!!
Develop games in your browser. Powerful, performant & highly capable.
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?
[Solved]. Thanks.
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.
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.
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 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. myadomain.com/file.php)