question: how to read local xml file
Page 1 of 18 Replies - 2406 Views - Last Post: 09 September 2011 - 07:04 AM
#1
question: how to read local xml file
Posted 08 September 2011 - 07:59 PM
hi experts. if its possible to read xml files locally from an html page using javascript without using any local server? tia.
Replies To: question: how to read local xml file
#2
Re: question: how to read local xml file
Posted 08 September 2011 - 08:30 PM
right now i am able to load xml using jquery .ajax function but it only loads xml files from server. what i need to do is to load xml from local file system. when i try to do it i get an error from chrome..
XMLHttpRequest cannot load file:///C:/Simplified.xml. Cross origin requests are only supported for HTTP.
#3
Re: question: how to read local xml file
Posted 08 September 2011 - 10:02 PM
Javascript per design is not allowed to access the local file system. thus chances are slim that there is a way. (otherwise a malicious website could easily read out your personal files)
#4
Re: question: how to read local xml file
Posted 08 September 2011 - 10:15 PM
oh.. i've read that.. hmm is there anything i can do to accomplish this task?
#5
Re: question: how to read local xml file
Posted 08 September 2011 - 10:26 PM
not that I know of.
#6
Re: question: how to read local xml file
Posted 08 September 2011 - 10:34 PM
so this is only possible server-side?
#7
Re: question: how to read local xml file
Posted 08 September 2011 - 10:46 PM
to the best of my knowledge, yes.
#8
Re: question: how to read local xml file
Posted 08 September 2011 - 11:53 PM
oh.. well thanks for the info
#9
Re: question: how to read local xml file
Posted 09 September 2011 - 07:04 AM
Now, I don't know what you're trying to accomplice, so this may be completely useless to you... But wouldn't it be possible to create a script that uploads the file to your server, reads it and does whatever it is you want, and then perhaps deletes it from the server afterwards?
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|