Sha256: baadb76e6debd30345318b312acb5fb0030711d50b3cc3ecd931ea35277fceb3
Contents?: true
Size: 1.39 KB
Versions: 3
Compression:
Stored size: 1.39 KB
Contents
function sbsm_encode(value) { // this function provides an Encoding-Hack: because encodeURIComponent returns // UTF-8 encoded values and because for some reasone we need to encode twice // anyway, we first encode in native charset. value = dojo.string.encodeAscii(value); value = value.replace(/\//g, '%2f') value = encodeURIComponent(value); return value; } function reload_form(form_id, server_event) { document.body.style.cursor = 'wait'; var form; var evt_field; if((form = dojo.byId(form_id)) && (evt_field = dojo.byId("event"))) { evt_field.value = server_event; dojo.io.bind({ url: form.action, formNode: form, load: function(type, data, event) { form.parentNode.innerHTML = data; document.body.style.cursor = 'auto'; }, mimetype: "text/html" }); } } function reload_list(list_id, url) { var list; if(list = dojo.byId(list_id)) { dojo.io.bind({ url: url, load: function(type, data, event) { list.parentNode.innerHTML = data; }, mimetype: "text/html" }); } } function reload_data(url) { dojo.io.bind({ url: url, load: function(type, data, event) { var key, val, item; for(key in ajaxResponse) { if(item = dojo.byId(key)) { if(item.value) { item.value = ajaxResponse[key]; } else { item.innerHTML = ajaxResponse[key]; } } } }, mimetype: "text/javascript" }); }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ydim-html-1.0.3 | doc/resources/javascript/ydim.js |
ydim-html-1.0.2 | doc/resources/javascript/ydim.js |
ydim-html-1.0.1 | doc/resources/javascript/ydim.js |