filereader - Javascript open File on Firefox -


is possible open file javascript?

its local have index.html in javascript should read text file in same direction called readtext.txt

i heard there security restrictions if local shouldn't work? if no there workaround? i've googled , found mozilla filehandleapi doesn't work me

the short answer no, you're attempting not work.

the longer answer: that's not how web works, on local machine. strictly client/server relationship: browser doesn't (and shouldn't) care client , server in case same machine. far browser knows, readme.txt file on 'server' , needs fetched ajax call. browser (for security reasons mentioned) can (for our purposes here) manipulate client files creates. filehandle api purpose.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -