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
adrma.invisibleParameterToJSON = function invisibleParameterToJSON() { | |
var parsedInvisParam = {}, | |
invisParam = adrma.cookie("InvisibleParameter"); | |
if (invisParam) { | |
invisParam.split('&').forEach(function(val, i) { | |
var tempArr = val.split("="); | |
var value = adrma.ifBoolParse(tempArr[1]); | |
if (value === '') value = null; | |
parsedInvisParam[tempArr[0]] = value; | |
}); |
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
<input type="text" id="test" name="test" value="" size="16"> | |
<script> | |
function replace() { | |
this.value = this.value.replace(/[^0-9]+/g,'') ; | |
} ; | |
document.getElementById("test").onkeyup = replace ; | |
</script> |