Click here to Skip to main content
15,847,427 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: How can i upload....? Pin
Bradml3-Feb-07 4:02
Bradml3-Feb-07 4:02 
AnswerRe: How can i upload....? Pin
Guffa3-Feb-07 5:07
Guffa3-Feb-07 5:07 
QuestionJavaScript Key Press event (Allow only Numbers in Textbox) Pin
varshavmane3-Feb-07 2:08
varshavmane3-Feb-07 2:08 
AnswerRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
Rojan Gh.3-Feb-07 12:09
professionalRojan Gh.3-Feb-07 12:09 
AnswerRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
Bradml4-Feb-07 23:15
Bradml4-Feb-07 23:15 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
varshavmane5-Feb-07 0:43
varshavmane5-Feb-07 0:43 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
Bradml5-Feb-07 0:45
Bradml5-Feb-07 0:45 
QuestionJavaScript Key Press event (Allow only Numbers in Textbox) Pin
varshavmane3-Feb-07 0:37
varshavmane3-Feb-07 0:37 
Hi ALL,
I wnat to allow only number in the textbox throug javascript.I wrote the Java script code but it say error in the script.Some one can tell me what is the problem??

<HTML>
<HEAD>
<SCRIPT language=Javascript>
<!--
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;

return true;
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<INPUT id="txtChar" onkeypress="return isNumberKey(event)" type="text" name="txtChar">
</BODY>
</HTML>
Thanks in advance.

AnswerRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
Bradml3-Feb-07 0:49
Bradml3-Feb-07 0:49 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
varshavmane3-Feb-07 1:08
varshavmane3-Feb-07 1:08 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
Bradml3-Feb-07 1:10
Bradml3-Feb-07 1:10 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
varshavmane3-Feb-07 1:14
varshavmane3-Feb-07 1:14 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
Bradml3-Feb-07 1:18
Bradml3-Feb-07 1:18 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
Bradml3-Feb-07 1:21
Bradml3-Feb-07 1:21 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
varshavmane3-Feb-07 1:24
varshavmane3-Feb-07 1:24 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
varshavmane3-Feb-07 1:26
varshavmane3-Feb-07 1:26 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
Bradml3-Feb-07 1:27
Bradml3-Feb-07 1:27 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
varshavmane3-Feb-07 1:43
varshavmane3-Feb-07 1:43 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
Bradml3-Feb-07 1:44
Bradml3-Feb-07 1:44 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
varshavmane3-Feb-07 1:46
varshavmane3-Feb-07 1:46 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
Bradml3-Feb-07 1:56
Bradml3-Feb-07 1:56 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
varshavmane3-Feb-07 1:59
varshavmane3-Feb-07 1:59 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
Bradml3-Feb-07 2:03
Bradml3-Feb-07 2:03 
GeneralRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
Bradml3-Feb-07 2:04
Bradml3-Feb-07 2:04 
AnswerRe: JavaScript Key Press event (Allow only Numbers in Textbox) Pin
WoutL3-Feb-07 3:32
WoutL3-Feb-07 3:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.