Numbers only input
Alright, I am going crazy ;-) (and I reposted this under a new subject header so it will be easier to searcg for...)
I have added the following snippet to the Page HTML Body Attribute on my Page Attributes:
<script>
var isNS4 = (navigator.appName=="Netscape")?1:0;
</script>
And then I added the following to the HTML Form Element Attributes on my text item
onKeypress="if(!isNS4){if(event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;}else{if(event.which < 45 || event.which > 57) return false;}"
But I just can't get it to work, I am sure that I've done something wrong but I can't see what it is. Maybe someone can see the problem?
Andy