Best way to save info in hash
Posted
by
qwertymk
on Stack Overflow
See other posts from Stack Overflow
or by qwertymk
Published on 2011-11-28T01:31:42Z
Indexed on
2011/11/28
1:49 UTC
Read the original article
Hit count: 155
I have a webpage that the user inputs data into a textarea and then process and display it with some javascript. For example if the user types:
_Hello_ *World*
it would do something like:
<underline>Hello</underline> <b>World</b>
Or something like that, the details aren't important. Now the user can "save" the page to make it something like site.com/page#_Hello_%20*World*
and share that link with others.
My question is: Is this the best way to do this? Is there a limit on a url that I should be worried about? Should I do something like what jsfiddle does?
I would prefer not to as the site would work offline if the full text would be in the hash, and as the nature of the site is to be used offline, the user would have to first cache the jsfiddle-like hash before they could use it.
What's the best way to do this?
© Stack Overflow or respective owner