1
DFRPG / Re: HTML5 form-fillable character sheets
« on: April 05, 2013, 09:45:37 PM »What about exporting the data to a JSON string? the user could save that data however they wished, and then have a load method that could read in a JSON string to populate the sheet?
js can't get access to any kind of file writing, so the only way to do it would be to create a text box one user copies and the other pastes. There wouldn't be any direct sharing, which kind of sucks. A server-side solution would definitely save a JSON file for each character, or something like that, but like I said, I'm trying to make it run client side.
I uploaded a change that lets you spit a character into URL parameters that a user can link. The result is a page that hangs for a while when it first loads, but it *does* seem to work. Here's an example.
STRONG WARNING: your browser will hang for a minute or so when you click the link. If you want to test it, try to give the page time to load; it shouldn't freeze you permenantly, but it might freeze you for a couple short minutes if you have a slow computer. I'm not really sure what is causing this hang right now; it seems to be related to GET url params in some way.
I really need a better way of handling this.
edit: I've decided this is just too gruesome a way to handle this. The changes have been reverted. I'll work on a way of storing multiple characters locally and switching between them instead.