| | |
Validations?
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Feb 2009
Posts: 83
Reputation:
Solved Threads: 7
Hi frnds....
i need Javascript Validations...these validations by using onchange or onblur events..i mean when focus out from a textbox or any field then immediatley shows the error msg and focus will be at error field(not after submitting the form)..i want error immediatley focus out from the field...plz provide 4 or 5 fields, after i can manage...
i am having validations code..but in this way idon't have,basically i am not good in javascript...
plz help me asap..
Thank u...
i need Javascript Validations...these validations by using onchange or onblur events..i mean when focus out from a textbox or any field then immediatley shows the error msg and focus will be at error field(not after submitting the form)..i want error immediatley focus out from the field...plz provide 4 or 5 fields, after i can manage...
i am having validations code..but in this way idon't have,basically i am not good in javascript...
plz help me asap..
Thank u...
•
•
Join Date: Feb 2009
Posts: 83
Reputation:
Solved Threads: 7
•
•
•
•
Hi frnds....
i need Javascript Validations...these validations by using onchange or onblur events..i mean when focus out from a textbox or any field then immediatley shows the error msg and focus will be at error field(not after submitting the form)..i want error immediatley focus out from the field...plz provide 4 or 5 fields, after i can manage...
i am having validations code..but in this way idon't have,basically i am not good in javascript...
plz help me asap..
Thank u...
If u have any problem with my english plz ask me..
this is urgent for me....i have to complete this today only..
plz reply only for 3 or 4 fields...(when we press tab than immediatly display error beside at the text box or alert box..)
Thank u...
First of all, this question belongs to Javascript forum. Its a javascript related question. 2nd, Post your code and tell us what is not working. We aren't 24/7 free coding service to provide you with ready made code when you say "Please help me asap", or, "Its urgentttt".
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
Here is some expectablel solution not sure...
for example , if you have a quantity field then , if we entered any letters on that it will show an immediate alert "Please Enter Only Numbers (0-9)"
if this is your expected solution . then the following is the code for that...if not post clearly....
function:
for example , if you have a quantity field then , if we entered any letters on that it will show an immediate alert "Please Enter Only Numbers (0-9)"
if this is your expected solution . then the following is the code for that...if not post clearly....
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<form name="exampleform" method="post" action=""> <input name="qty" type="text" id="qty" value="" onKeyUp="Only_Num(this.id)" size="3" maxlength="5"> </form>
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
function Only_Num(id) { if(isNaN(document.getElementById(id).value)) { alert("Please Enter Only Numbers (0-9).."); document.getElementById(id).value=''; document.getElementById(id).focus(); } return; }
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
•
•
Join Date: Feb 2009
Posts: 83
Reputation:
Solved Threads: 7
•
•
•
•
Here is some expectablel solution not sure...
for example , if you have a quantity field then , if we entered any letters on that it will show an immediate alert "Please Enter Only Numbers (0-9)"
if this is your expected solution . then the following is the code for that...if not post clearly....
function:JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<form name="exampleform" method="post" action=""> <input name="qty" type="text" id="qty" value="" onKeyUp="Only_Num(this.id)" size="3" maxlength="5"> </form>
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
function Only_Num(id) { if(isNaN(document.getElementById(id).value)) { alert("Please Enter Only Numbers (0-9).."); document.getElementById(id).value=''; document.getElementById(id).focus(); } return; }
Hi frnds..
Sry for posting this question in php forums...
Thank U shanthi for giving quick reply...
Now i can manage by using this one...
Hi naveen..
i am not asking about readymade code..i need just how to use onchange event ...i am having good validation code, but,that is working only on submitting the total form.....anyhow i am sry 4 distrubing u...
Thank u Naveen..
![]() |
Similar Threads
- W3C Validation (HTML and CSS)
- defining objects, variables and checking validations for java (Java)
- Factorial Calculate (VB.NET)
- how to implement validations for chinese characters (C#)
- jsp-struts using validations (JSP)
- dreamweaver, PHP and submit form query (PHP)
- asp.net application in MAC OS (ASP.NET)
- If Else Loops (Java)
- Bash shell screipt help (Shell Scripting)
- The Calculator (C++)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Newbie Java question
- Next Thread: Browser Script Conflicts.(FIREFOX)
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array browser bug captchaformproblem cart checkbox child class close codes createrange() css cursor date debugger decimal dependent design disablefirebug dom dropdown editor element embed engine enter error events explorer ext file firefox focus form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images index internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps masterpage math media menu mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post problem programming progressbar prototype redirect runtime safari scale scriptlets scroll search security shopping size software toggle unicode w3c web wysiwyg \n






