Hi,
I'm currently working on a project that has a script file (script.js) which uses an XMLHttpRequest to handle a local file (script.php). It opens the file, executes and then returns a value back to the Javascript file(ajax.respo nseText).
When I link the script.js to an external website, such as my blog, the server can't find the file script.php, because it's not on my blog's server. The only way that I can make it find the file, is to include the entire URL to script.php, which works on the server, but not on my blog, because of the access control in most browsers stopping cross-domain AJAX.
Is there any work-around?
I'm currently working on a project that has a script file (script.js) which uses an XMLHttpRequest to handle a local file (script.php). It opens the file, executes and then returns a value back to the Javascript file(ajax.respo nseText).
When I link the script.js to an external website, such as my blog, the server can't find the file script.php, because it's not on my blog's server. The only way that I can make it find the file, is to include the entire URL to script.php, which works on the server, but not on my blog, because of the access control in most browsers stopping cross-domain AJAX.
Is there any work-around?
Comment