Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet Validating Emp ID Reply

Have Programming Question? Ask it here!
 
 
 


Ragavendran.R
Validating Emp ID Reply
2 Answer(s)      6 years ago
Posted in : JSP-Servlet



Advertisement
View Answers

August 11, 2008 at 3:57 PM


hai frnd....
The change i made is for accepting numerals only.....
If u type any characters...it will show u an alert window telling "Please input valid emp no"
this msg u can type wat ever u want...
but dont make any change in the variable anum

thanks and regards
prashu


August 11, 2008 at 4:23 PM


hai frnd....
here i have mistyped as phone....
var anum=/(^\d+$)|(^\d+\.\d+$)/
if (anum.test(phone))
return true
else{
alert("Please input valid emp no!")
return false
}



please use ur field name...

var anum=/(^\d+$)|(^\d+\.\d+$)/
if (anum.test(id))
return true
else{
alert("Please input valid emp no!")
return false
}



thanks and regards,
Prashu
prashobvee@gmail.com


Related Tutorials/Questions & Answers:
Validating Emp ID Reply - JSP-Servlet
Validating Emp ID Reply  Respected Sir/Madam, I am Ragavendran.R.. Thanks for your quick response.. Actually I need to check whether Emp ID... valid emp no!") return false } if(form.id.value=="") { alert
validating email id
validating email id  how to validate the email id ?   <...=""; return false; } } </script> <form id="form...;tr><td>Email </td><td><input type="text" id="email" ><
Advertisements
get details of employee after enter the emp_id
get details of employee after enter the emp_id  how to get employee details after entered the emp_id from database after that we have three more option add new,modify and delet employee   Please visit the following
get details of employee after enter the emp_id
get details of employee after enter the emp_id  how to get employee details after entered the emp_id from database after that we have three more option add new,modify and delet employee   Please visit the following
Finding MAX value from emp_id column using SQL query?
Finding MAX value from emp_id column using SQL query?  I need to select maximum of the Emp_id values from SQL server 2005 table.I was using... of emp id from the table.(Actually it picks up Max value using by looking at 1st
validating a HTML
validating a HTML  What are the reasons for validating a HTML
Validating XML
Validating XML  Hi, I have a string containing data in XML format. I have to Validate this xml data. Is there any method in java that allows strings as input to validate xml?   Please visit the following link: http
id
id  how to find date of birth and gender in id in html with the help of javascript
validating web pages
validating web pages  How to validate HTML web pages
Validating image size
Validating image size  How to validate image size to 2MB in javascript which is updating to mysql database
Reply - JSP-Servlet
to solve that emp id validation by checking only for empty field in my home page and for Invalid emp id, i passed the control to process.jsp and caught numberformat exception to display "Please enter Valid ID" in the form of an alert box
validating a form before data is entered.
validating a form before data is entered.  How can I avoid validating a form before data is entered
Validating Number Very Urgent - JSP-Servlet
of Emp ID text box.. I am sending the code for your kind reference which tends you...; wat do u want to check? if u want to insert number only in the emp id...Validating Number Very Urgent  Respected Sir/Madam, I am
validating - Swing AWT
validating   hi another problem i am facing in swing is that is i have got many textfeilds ex: Roll No: Name: Address: so Roll No TextField have to Contains only Numbers. Name TextFields have to contain only
Validating the password field
Validating the password field  When the validate method returns back to the registration page the password field get cleared there by asking again one more time to enter the password field at the time of re-submitting the form
reply to the mail
reply to the mail  Hi! which jar file needed to be added? Thanks   Question not clear
reply must
reply must  is it critical to do a software job based on games(java) i know core java & advanced java basics only please give me answer
validating username and password from database
validating username and password from database  Hello sir, i am developing a login page. i want that when i fill data in text fields. it validate data from database. if enter data is match from database. page goes to next page
Validating date in javascirpt - Development process
Validating date in javascirpt   Hi Friends, Can u plz give sample code for validating date in javascript using textbox.((dd--mm--yyyy format) Thank u in advance  Hi, The following code may be useful
Reply - JSP-Servlet
;=imgs.length;i++) { var imgid="myImage"+i; var emp_id = "eid"+i..._value = document.getElementById(emp_id).value...="getuser.jsp" url=url+"?emp_id="+emp_value; xmlHttp.onreadystatechange
Reply Me - Java Beginners
Reply Me  Hi All, I want to using query string in my page......when i click any link then open all form clearly but i want to pass id=1 in url...=13c222b87273340cf002bfba4ab9d045. please reply me fast its urgent
validating text fields - Swing AWT
validating text fields  hi i am using NETBEANS IDE so when i want to validate TEXTFEILDS if one textfield is blank then it should focus on that particular textfield so help me with this plz..... /* * To change this template
id creation
id creation  CREATE TABLE mohan2 ( sno bigint(20) NOT NULL AUTO...) { Scanner s=new Scanner(System.in); System.out.println("Enter emp name:"); String str=s.next(); System.out.println("Enter emp sal
Validating date in javascript - Java Interview Questions
Validating date in javascript   Hi Deepak, Can u give sample code validating date in javascript using text box. thank u in advance  In what format you are going to enter the date in Text box (i.e : dd/mm
Image Selection Reply Urgent.. - JSP-Servlet
Image Selection Reply Urgent..  Respected Sir/Madam, I am R.Ragavendran.. Thanks for yuor fast response.. Sir actually I will be much more... emp_value=""; for(var i=0;i0) { for(var i=0;i
Reply me - Java Beginners
Reply me  Hi, There are one form product_master these fields are prod_id,prod_name,prod_opstock,prod_excise,prod_vat,reorder_level,reorder_qty,vendor_name All fields are input manualy but i want this vendor_name take
reply me - Java Beginners
reply me  Hi, user enter vend_id in text box ten open the addform.jsp In the addform.jsp have two button Update and delete addform.jsp is display with fetching data in all text box I m sending code before 5
Reply Me - Java Beginners
Reply Me  Hi Amardeep I am sending database table name,code and db file please insert this data in this table its very urgent.... My.... can you send all file in make zip file on my id. Because your code very large
generate ID
generate ID   Statement st1=con.createStatement(); String sql="insert into employee values(emp_seq.nextval,'"+ename+"','"+eadd+"','"+ephone+"','"+email+"','"+department+"',"+Integer.parseInt(ebpay)+",20,0)"; st1.executeUpdate
Reply me - Java Beginners
Reply me  HI I m sending structure of table vend_id,vend_name... vend_id. vend_name... i'm considering vend_id,vend_mobile ,vend_panno,vend_phone
total id
total id  how to print and total my id number ..for example if my id is 0123456789 the output will look like this : 0123456789 0+1+2+3+4+5+6+7+8+9=45 help me plz
Session ID
Session ID  How can I change the session ID of the page?   ...' session ID values because it is very likely to result in the loss of the session or with people acquiring other users' data. The session ID value should be managed
Reply Me - Java Beginners
Reply Me  Hi, This is not correct url please send me again coorect url
Reply Me - Java Beginners
Reply Me  Hi, For table I have a two table first is sales transaction and second is sales_line sales_transaction fields are comp_id,vend_id,invoice_no,invoice_date,lpono,lpo_date,purcase_order_no,country_of_origin
Validating Duplicate Entry To Database - Java Beginners
Validating Duplicate Entry To Database  I have a servlet that adds data to the table called foodtype in (Ms Access). i already have Chinese, vegetarian entered in table. what am trying to do is to validate when entering foodtypes
Reply me - Java Beginners
Reply me  Hi,   Hi Ragini please specify main problem. where are problem in your code. Thanks
<form id=
form id  sir, <form id="reg1" action="../UploadingCtrl" method="post" enctype="multipart/form-data" name="form1"> this action page can't get String tp = request.getParameter("indegrates"). i wrote article upload
<form id=
form id  sir, <form id="reg1" action="../UploadingCtrl" method="post" enctype="multipart/form-data" name="form1"> this action page can't get String tp = request.getParameter("indegrates"). i wrote article upload
Reply me soon.........
Reply me soon.........  Any body plzz help.....how to get d checked details from previous page to current page and den insert into table
Reply me - Java Beginners
Reply me  Hi Friends, Quest:- Tell em what is the difference between java and php, dotnet Quest:- what is the similar point of php and java... Please tell me its very urgent
reply - Java Beginners
reply  Hi friends I have a 255 fields i want to insert data in the table please let me know how to insert data in the database please reply me its very urgent
id generation
id generation  CREATE TABLE `mohan2` ( `sno` bigint(20) NOT NULL... to employee id automatically generate please try this code, useful for u thanks ...");%> any body want to employee id automatically generate please try
Reply Me - Java Beginners
Reply Me  Hi,.. I have a some fields in one form like security and some more fields this fields maintain the table if user click security... question then reply me
Reply Me - Struts
Reply Me  Hi Friends, Please write the code using form element...because i got error in textbox null value  Hi Soniya Would you please explain, in which technology are you creating page? I promise
Reply me - Java Beginners
Reply me  If u r not understood my just posted question plz let me know  Hi Ragini, Please specify your requirements in detail. It would be good for me to provide you the solution if problem is clear. And also
retrieve Dept Name from table dept and retrieve list of employee from emp table for that dept in combobox
retrieve Dept Name from table dept and retrieve list of employee from emp table... and display that list in combobox. For example, In HTML page, we have Dept ID... of employee from table emp for that dept in combobox using this query (select ename
Reply Me - Struts
Reply Me  Hi Friends, I am new in struts please help me How to arrange the folder using oracle 10g database where store web.xml file,jsp file,connection file....etc please let me know its very urgent  
Hibernate criteria by id.
(); } } Output: Hibernate: select this_.emp_id as emp1_0_0_, this_.date_of_join... this_ where this_.emp_id=? 1 Mandy 20000 2010-03-12 00:00:00.0 Description...Hibernate criteria by id.  How to display record by using criteria
Reply me - Java Beginners
Reply me   Hi, I am using this code for session but i am calling admin_home1.jsp then page is going on the admin_home1.jsp but this data will be not displaying, and i am calling with .html extention means admin_home1.html
Advertisements
 

 

 

DMCA.com