Sorry for bumping the post again, but I really need to understand well what's possible and not possible.
Also if there's another one with the same questions they might have some answers here..
I will explain with details what I'm trying and how I'm doing..
there is a webserver running in my PC, php files are inside the 'htdocs', however the game isn't in 'htdocs', it's in a local folder.
I can request php files with AJAX running in preview mode (adding the header to allow access), but I can't request .XML files. When I request a .xml file and add below a condition AJAX->On "xml request" Completed and add some simple actions to check if it has succeed to get it, nothing happens, meaning that AJAX failed to retrieve the file from the webserver, probably because of security definitions..
Now.. comes the question, so how do I successfully request a .xml file from a webserver?
I'm trying some solutions.. one of them is request a .php file with '(header('Access-Control-allow..')' and add "simplexml_load_file" to load the .xml file, then use the function 'asXML()' to send the whole xml information to AJAX.
example:
<?php
header('Access-Control-Allow-Origin: *');
$xml = simplexml_load_file("test.xml");
echo $xml->asXML();
?>
After requested, load the ajax.lastdata to XML Object
this formula currently is working, but isn't the most efficient way...
Concluding, after all, is it possible to request("REQUEST URL") .XML files from a webserver using AJAX object? I already tried but couldn't succeed to request it, so if anyone know how to do it, please make a tutorial explaining..
Thanks