Session Timed Out Patches
Solved:- warning and manual save if server is unavailable
- AJAX heartbeat if server is available
- warning and manual save user when the user has logged out [403]
-
\n
versus<br>
issue for message set - add heartbeat support also for comments
TODO:
- local save via HTML5 with version conflict prevention
- add Heartbeat Control
- enable / disable heartbeat
- locations (edit and comment handler)
- frequency (default:
1440
, 24 minutes)
- if server is unavailable icon for error message won't load if not already cached
- user POST if server is unavailable -> check server status to prevent data loss
-
alert(div.innerHTML)
versusprepend(div)
- localize: "This page is asking you to confirm that you want to leave - data you have entered may not be saved." defunct
- Browsers removed custom messages in onbeforeunload dialogs to prevent scamming [chrome[link1]]
- Replace inline JavaScript[link2]
- e.g.
var itemID = document.body.getAttribute("data-foo”);
- e.g.
- build in JS debug session time counter
- Unsability improvements, search for good examples
- add Heartbeat feature to documentation
remarks:
- currently it is sufficient to load the JS lang file only with WikiEdit
commit:a5fbdf565b7b11de630b3fafd1c8adbdabec20fd[link3]
commit:c9a74a4f5c7bf13046bcaaad7f5236f4010f30e1[link4]
commit:e83dc015a7feed8e65546f12f4d7e88043a8251c[link5]
- [link1] https://developers.google.com/web/updates/2016/04/chrome-51-deprecations#remove_custom_messages_in_onbeforeunload_dialogs
- [link2] https://wackowiki.org/doc/Dev/Release/R6.0/JavaScript
- [link3] https://bitbucket.org/wackowiki/wackowiki/commits/a5fbdf565b7b11de630b3fafd1c8adbdabec20fd
- [link4] https://bitbucket.org/wackowiki/wackowiki/commits/c9a74a4f5c7bf13046bcaaad7f5236f4010f30e1
- [link5] https://bitbucket.org/wackowiki/wackowiki/commits/e83dc015a7feed8e65546f12f4d7e88043a8251c