gibney.org
:
Technology
:
Javascript
:
Includes
:
PersistentFormdata2
search:
See as:
raw
|
code
terms of service
|
imprint
gibney.org
is powered by
m1d1
PersistentFormdata2
(Entry Nr. 1197, by user 39 |
edit
)
/* www.gibney.org PersistentFormdata */ // //
/* Script by Gibney-Enterprises include this script in a HTML-Page with a Form. Fill the form and press ctrl+shift+p to get a url for the current page with your values in input-fields and textareas */ ge_persistentFormdata_forms=Array(); function ge_persistentFormdata_KeyPress(e) { var code; if (!e) e = window.event; if (e.which) { code=e.which; } else { code=e.keyCode; } if (e.ctrlKey && e.shiftKey) { if(code==80) // 80=p as persistent { ge_persistentFormdata_MakePersistent() return false; } } } function isInArray(array, value) { for (var i=0; i
0) parameters+='&'; // parameters+=form.elements[e].name; parameters+='gePF_'+f+'_'+e; parameters+='='; parameters+=encodeURIComponent(form.elements[e].value); } } window.location.hash=encodeURIComponent(parameters); } function ge_persistentFormdata_LegacyCheck() { if (window.location.query.length>0) { var parameters=window.location.query.substr(1).split('&'); for (var p=0; p
0) { var parameters=window.location.hash.substr(1).split('&'); var parametercount=parameters.length; for (var p=0; p
Create a new entry at this position