and after place inside the xml data you want to get (or the PHP file you want to call, and so on).
Usually, the web server is called on localhost with ports 8080 or 8000 or something else, it depends on your configuration.
It's almost done...
You need to unlock your browser, letting it access cross-server informations.
As a matter of fact: the preview is shown on localhost:50000 while the webserver is called on localhost:8080.
I use Mozilla Firefox as a browser and I've found
this plug-in
that let me switch the Access-Control-Allow-Origin rules.
Summary
* In the web server www path create a folder to host the data you want to get by AJAX call
* Configure your web browser to have the correct Access-Control-Allow-Origin rules
* Make your call inside the game this way:
http://localhost:8080/scirraTest/myGame/xml/dataIWantToGet.xml
* Last silly TIP: place the web address in a variable and use it in every AJAX call, just to avoid several changes while exporting the game.. ;-)
webAddress = "http://localhost:8080/scirraTest/myGame/xml/"
webAddress & "dataIWantToGet.xml"
I hope this can be useful and save some time for someone.
Any feedback will be appreciated.