XML : How to define XML URL path to a local file in jquery

I want to find a node in a XML which sits locally in my E drive. I am calling the below function to read the file but its giving me [object Object] error.

  function getPetPrice(id) {      $.ajax({          type: "GET",          url: "PetList.xml",          dataType: "xml",          success: function (xml) { alert("Sucess"); },          error: function (errorThrown) { alert(errorThrown); }      });  }    

I have tried to give the full path to the file but the issue remains the same. Please advise...

No comments:

Post a Comment