Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Numbers only input

ATael-OracleJul 2 2007 — edited Jul 2 2007
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 30 2007
Added on Jul 2 2007
1 comment
361 views