•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 401,633 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,849 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2145 | Replies: 6
I was helping a fellow daniweb user with validation for restricting output to only numerics.
Then another user said even it validates a user could copy and paste into the cell.
Now that has been annoying me and I have been trying to figure out a way to prevent this.
Any Ideas? Thanks, Regards X
Then another user said even it validates a user could copy and paste into the cell.
Now that has been annoying me and I have been trying to figure out a way to prevent this.
Any Ideas? Thanks, Regards X
<html>
<head>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function Numbers(e) {
var cc = (e.which) ? e.which : event.keyCode;
if (cc > 47 && cc < 58) {
return true;
}
return false;
}
</SCRIPT>
</head>
<body>
<form method="">
<input type="text" name="jtitle" onKeyPress="return Numbers(this)"
size="57">
</body>
</html>•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ajax asp cross-browser javascript menu with few lines of code developer development firefox home html internet javascript javascript smooth scrolling scroll smoothly window document position javascript tab menu with rounded corners generator microsoft msdn office prevent javascript menu from getting hidden under flash movies site software sql vista web
- I keep getting the message Virus Alert Critical System Error on my taskbar. (Viruses, Spyware and other Nasties)
- Multiple iexplore.exe and multiple symantec email proxy warnings (Viruses, Spyware and other Nasties)
- "Virus Alert" on my taskbar!! (Viruses, Spyware and other Nasties)
- Nasty case of Guard.tmp (Viruses, Spyware and other Nasties)
- surf sidekick 3 and other nondesirables (Viruses, Spyware and other Nasties)
- Nasty-*** virus (Viruses, Spyware and other Nasties)
- searchportal.com (Viruses, Spyware and other Nasties)
- help with Hacktool.Rootkit (msdirectx.sys) (Viruses, Spyware and other Nasties)
- yupsearch and other problems (Viruses, Spyware and other Nasties)
- IE Hijack Problem (Viruses, Spyware and other Nasties)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: your basic calender
- Next Thread: onClick remove onMouseOut



Threaded Mode