Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIssue restoring from bookmark URL #1378
Comments
|
@jrowen wondered if you'd tried this lately as I don't seem to get your fix to work anymore (pretty sure it was working a few weeks ago)? |
|
Just to update, this may be an issue with the specific browser. Just re-tested this using Safari and works ok (earlier problem was using IE on a windows machine). |
|
You may have been running into the ~2000 character URL limit on IE: For cases like this, it makes sense to use server-side bookmarking instead of url-encoded bookmarking. |
The new bookmarking functionality is great. I'm attempting to use it with
rhandsontableand running into a slight issue when attempting to restore the table data. The widget is currently build as a shiny output andShiny.onInputChangeis used to create a pseudo input.The bookmark logic is encoding the
onInputChangedata returned from the widget and making that data available in in theonRestoremethod. I added a simple variable cache to stop this input and then use it to rebuild the table when the app is loaded. This is working very well except for thedataparameter, which is a JS array passed to R from the browser app.I think I've traced this back to a difference between how the data is passed to R from
onInputChangeand how the data is restored from the bookmark URL.Below is an example app and a "fix" using
jsonlite. Is this the expected shiny behavior, and if so should we look to update rhandsontable to to get around this issue (maybe usingJSON.stringify)?