954,224 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

sample code for form validation using ajax

Hello sir,

I m need of help regarding form validation using ajax.I need a sample code.It should be like when i have two text fields without entering the first one when i keep the mouse in to the second text box it should say in the red mark as in the right hand side of text box..

please help me

elangobala
Newbie Poster
15 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

take a look at:
http://www.w3schools.com/ajax/default.asp
http://www.prototypejs.org/
http://sourceforge.net/projects/glm-ajax/

and also search it yourself in google and iy provides you with amazing things, really!

Good luck.

mostafadotnet
Junior Poster
157 posts since Jul 2006
Reputation Points: 55
Solved Threads: 11
 
and also search it yourself in google and iy provides you with amazing things, really!

Congratulations, you came up number 5, ie. The fifth ranked forum post in Google for this very topic. Congratulations, and thanks for suggesting Google.

sanity93
Newbie Poster
1 post since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

Hi,
->I need a help regarding form validation.
->when i click the submit without entering the first field,it must show star(*) like this.
->pls provide me the sample code.

Thank u.

dsiva637
Newbie Poster
1 post since Feb 2010
Reputation Points: 10
Solved Threads: 0
 
<span id=fooerror style="color:red;"></span><input type=text name=foo id=foo onblur="if(this.value.length<1){document.getElementByID('fooerror').innerHTML='*';alert('Error\n I must learn the difference between asking for someone to help and asking for someone to do it for me.')}">
vsmash
Junior Poster
119 posts since Feb 2010
Reputation Points: 9
Solved Threads: 17
 

lol @ alert (vsmash)

MrRundog
Newbie Poster
1 post since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You