Jump to content

sushilborhade

Members
  • Posts

    1
  • Joined

  • Last visited

sushilborhade's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Hi, I want to load client machine xml file into my html page using XMLHTTP. If I open the my file by giving D:\xmlhttpPRG\loadXML.html then it loads the xml file. This works fine but if I open this file by giving URL ie. http://127.0.0.1/xmlhttpPRG/loadXML.html then its gives an error "Permission denied" ><script language="javascript"> var xmlhttp = new ActiveXObject ("Microsoft.XMLHTTP"); xmlhttp.Open("GET", "file:///C:/sample.xml", false); xmlhttp.Send(); alert(xmlhttp.responseText); </script> So, how can I load client machine xml file into my html page using URL. If anybody knows the solution then pls send me the solution. Thanks.
×
×
  • Create New...