this requires Right click is anything of kind of button click that, produce a save as dialog (not right click)??? also may save some localStorage data as txt file in PC or mobi device, ...?
this requires Right click is anything of kind of button click that, produce a save as dialog (not right click)??? also may save some localStorage data as txt file in PC or mobi device, ...?
i TRIED USE
http://www.w3.org/TR/file-writer-api/
BUT FAILED
also may save some localStorage data as txt file in PC or mobi device, ...?
THIS may all localStorage processed to txt file.
this by pressing a button. same i want for image save (press button)... not right click.
AFAIK, you can't make a "save as" button via JavaScript - I may be wrong, but I've never seen it. The filewriter API may allow that, but I don't know how well supported it is.
The alternative, if you really don't want to right-click, might be to use js to submit the canvas data to you server, and then offer a "download" button. Seems like an over-complication to me, though.
download button includes save as dialog in client/browser
? how?
In short, there is now crossbrowser event associated with saveas. Basically, there's no easy way, and the hard ways may not work either. The best I've seen in terms of this question was the top answer here, which uses a rather complicated method. Frankly, it'd be much easier if you were just to tell us why you don't want to use right click, so that we can think of workarounds that are perfectly viable. You're welcome to try the solution in the linked thread, but there may be better workarounds than a button that forces a save as.
"Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
Anime Views Forums
Bernie
I have never seen such unclear,or precise questions.I wish you knew how to explain what you are asking because it hurts to read these posts of people trying to help you but unable to understand just what you are asking.
Please be crystal clear as to what you want to do.Then maybe,just maybe someone can help
Thanks,
Bud
Bookmarks