This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ZPT: write clean inline JavaScript code --> | |
<!-- rstk.json_dumps translates the Python dict to a JS dict, used in JS code --> | |
<script> | |
function setup_my_html(config) { | |
var e = document.getElementById(config.the_id); | |
//.... | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is an example to create persistent forms using | |
* HTML5 localStorage + jQuery serialization and | |
* url.decode from http://www.webtoolkit.info/ | |
* | |
* | |
* The example bellow is seriously unoptimized. | |
* It listens to changing events in the form and | |
* serializes the data of the form in localStorage | |
*/ |