Not able to load local .xml file through Jquery ajax call -


I am creating a sample web application on my local machine. I have a .xml I want to call who is on my local machine.

It is not working at all in any browser. When I try to look in the Chrome tab in the Network tab, it displays that the XMLHttpRequest file can not be loaded: ///d: /somefolder/finishers.xml? _ = 1392713504397. No 'access-control-permission- Origin headers are available on requested resource originally' blank 'access is not allowed.

Maybe it is possible to have a duplicate question, but I am new to junkie. Below is my code.

  $ Ajax ({url: "finishers.xml", cache: incorrect, datatype: "xml", success: function (xml) {}});  

Please help me in solving this how thanks in advance.

That's because you run the code in the local machine server).

Place your code under the web server (like Apache) and try again.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -