On my site (sympathetic-resonances.org), users edit complex forms. Part of 
the form is musical data passed as JSON in a hidden form field, where a JS 
frontend reads it from and writes it to. The pages themselves are submitted 
as regular forms.

I have a few users in countries with very unreliable internet connection. 
If their form submit fails, edits to the musical data are sometimes lost, 
depending on the browser. (Firefox offers a Try Again button, Chrome and 
Safari don't - I wonder why the UX is so bad here in the first place.)

Ideally, if users clicked on a submit button and the site can't be reached, 
the page with the form would remain unchanged (so you might even continue 
editing), and a dialog would pop up, indicating the problem and asking to 
try again later.

Is there a simple way to achieve this with JS and/or web2py? (I realize 
that this kind of single-page frontend would better communicate with the 
backend via AJAX, but there's quite some logic (custom validators etc.) 
tied to the controller, and unless there's a simple way to keep the 
controller mainly as-is, I don't want to spend the time for this change 
right now.)

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to