[QUOTE=Yann] well now we should use the import files features of c2 so that it will work in preview mode.
The preview mode doesn't work because because browsers or server (I don't remember) block ajax's cross domain requests unless the server sends header that allow it.
But using the import files, the files are exported when preview in the same place as the script and accessible via localhost.
Should update my old capx maybe...[/QUOTE]
[QUOTE=Ashley] The cross-domain AJAX restrictions and how to work around them (including in preview mode) are described in the AJAX manual entry
Ashley, I had read the "Access-Control-Allow-Origin: *" on the manual, but still not figuring out how to configure it to send the following HTTP header.
I tried these steps, with the conditional "When in preview":
- Writing it on the first line of the txt;
- Posting, with Ajax, "Access-Control-Allow-Origin: *" to "Localhost";
Stupid tries, no idea of what I'm doing =\