javascript - Loading Text file to HTML textarea from mobile phone storage -
i writing app mobile phones using html5, javascript , css. 1 part of app should allow user load text file present phone's local storage on text area provided on page. questions are:
- how create file dialog box ask user select txt file. (is possible?)
- i read php etc load files have no experience in it. there code snippet use load text file? can javascript, jquery mobile has this?
- once load textarea, want edit , save again.
it helpful if can throw light on or direct me towards resource can learn it.
local i/o never allowed directly, should obvious security reasons. need set <input type="file">
form this, i'm not sure how behave on mobile platform. i'm sure that between platforms. assuming successful file upload , transmission editing area, saving storage require file download have initiate, , user choose accept or ignore.
you use words "local storage" , tags include html 5, there additional options. can in localstorage api, allows store larger amounts of data can retrieve, allow editing on, , save. controlled browser eliminate security issues. there file api, allows reading files. believe read-only, however, (again security) , may not looking for.
Comments
Post a Comment