Click here to Skip to main content
15,916,945 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: How to set user control property using Jquery Pin
Not Active28-Jul-11 1:04
mentorNot Active28-Jul-11 1:04 
GeneralRe: How to set user control property using Jquery Pin
Gerben Jongerius28-Jul-11 19:47
Gerben Jongerius28-Jul-11 19:47 
QuestionHow can i change entries_url to load from local file Pin
CyberPath27-Jul-11 4:33
CyberPath27-Jul-11 4:33 
AnswerRe: How can i change entries_url to load from local file Pin
twseitex27-Jul-11 10:34
twseitex27-Jul-11 10:34 
Questionuser should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
yogesh8926-Jul-11 1:26
yogesh8926-Jul-11 1:26 
AnswerRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Roman_wolf26-Jul-11 3:10
Roman_wolf26-Jul-11 3:10 
GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Not Active26-Jul-11 14:01
mentorNot Active26-Jul-11 14:01 
GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Roman_wolf26-Jul-11 22:30
Roman_wolf26-Jul-11 22:30 
GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Not Active27-Jul-11 0:58
mentorNot Active27-Jul-11 0:58 
GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Roman_wolf27-Jul-11 2:24
Roman_wolf27-Jul-11 2:24 
GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Not Active27-Jul-11 2:58
mentorNot Active27-Jul-11 2:58 
GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Roman_wolf27-Jul-11 3:31
Roman_wolf27-Jul-11 3:31 
AnswerRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Not Active26-Jul-11 14:00
mentorNot Active26-Jul-11 14:00 
AnswerRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Shameel27-Jul-11 1:05
professionalShameel27-Jul-11 1:05 
You can use the MaxLength attribute of the textbox to limit the lengh to 4 and use this function to limit the input to only numbers. If you want to restrict entry of invalid characters, you'll have to handle the keypress event and write appropriate code.

JavaScript
function isNumeric(str)
{
	var i=0;
	for(i=0;i<str.length;i++)
	{
		if(str.charAt(i) < '0' || str.charAt(i) > '9')
			return false;
	}
	return true;
}

GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Not Active27-Jul-11 2:03
mentorNot Active27-Jul-11 2:03 
GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Shameel27-Jul-11 2:20
professionalShameel27-Jul-11 2:20 
GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Not Active27-Jul-11 2:57
mentorNot Active27-Jul-11 2:57 
GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Shameel27-Jul-11 5:21
professionalShameel27-Jul-11 5:21 
GeneralRe: user should have to enter 4 numbers in textbox after 4 numbers textbox should not take any number Pin
Not Active27-Jul-11 6:33
mentorNot Active27-Jul-11 6:33 
QuestionHow use javascript code for loading bar a .swf file Pin
nima_pw24-Jul-11 5:38
nima_pw24-Jul-11 5:38 
AnswerRe: How use javascript code for loading bar a .swf file Pin
twseitex24-Jul-11 10:28
twseitex24-Jul-11 10:28 
QuestionProblem in the JavaScript function in Firefox Pin
diba_gh23-Jul-11 19:47
diba_gh23-Jul-11 19:47 
AnswerRe: Problem in the JavaScript function in Firefox Pin
Shameel23-Jul-11 23:47
professionalShameel23-Jul-11 23:47 
QuestionInvalid characters Pin
Tauseef A22-Jul-11 22:33
Tauseef A22-Jul-11 22:33 
AnswerRe: Invalid characters Pin
Shameel23-Jul-11 23:49
professionalShameel23-Jul-11 23:49 

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.