Load Xml File Without Ajax
I want to load a static XML file into HTML and process it without a AJAX request. I dont want to make an AJAX request because, when that html file is viewed without a webserver (wh
Solution 1:
Short answer - no you can't.
You cant load the XML into a web page without either using JS/AJAX or a server side language (which you don't have without a web server). This applies of course to the intention of post-processing the data in the HTML-page using jQuery.
The AJAX request is stopped due to the fact that browsers adhere to the "same origin policy" (See http://en.wikipedia.org/wiki/Same-origin_policy). You can't work around that without either running a local web server or putting the files onto a public web server.
Post a Comment for "Load Xml File Without Ajax"