Share on Google+Share on Google+

java coreconcepts
Java find the error 6
1 Answer(s)      5 years and 2 months ago
Posted in : Java Beginners
<script type="text/javascript">
function validation()
{
    var name=document.forms["insert"]["in_username"];
    var age=document.forms["insert"]["in_userage"];
    var address=document.forms["insert"]["in_address"];
    var phone=document.forms["insert"]["in_userphone"];

    if(name.value.length == 0)
    {
        alert("please enter employee name");
        name.focus();
        return false;
    }
    if(age.value.length == 0)
    {
        alert("please enter employee age");

        return false;
    }

    if(address.value.length == 0)
    {
        alert("please enter employee address");
        return false;
    }

    if(phone.value.length != 10 || phone.value.charAt(0)!=9)
    {
        alert("please enter valid phone number");
        return false;
    }
    return true;
}

function phone()
{
document.getElementById("in_id_userphone").onkeypress=function(e)
{
var e=window.event || e
var keyunicode=e.charCode || e.keyCode
return (keyunicode>=48 && keyunicode<=57 )? true : false
}
}

function age()
{
document.getElementById("in_id_userage").onkeypress=function(e)
{
var e=window.event || e
var keyunicode=e.charCode || e.keyCode
return (keyunicode>=48 && keyunicode<=57 )? true : false
}
}

Ads

View Answers

February 8, 2012 at 3:50 AM


<script type="text/javascript">
function validation()
{
    var name=document.forms["insert"]["in_username"];
    var age=document.forms["insert"]["in_userage"];
    var address=document.forms["insert"]["in_address"];
    var phone=document.forms["insert"]["in_userphone"];

    if(name.value.length == 0)
    {
        alert("please enter employee name");
        name.focus();
        return false;
    }
    if(age.value.length == 0)
    {
        alert("please enter employee age");

        return false;
    }

    if(address.value.length == 0)
    {
        alert("please enter employee address");
        return false;
    }

    if(phone.value.length != 10 || phone.value.charAt(0)!=9)
    {
        alert("please enter valid phone number");
        return false;
    }
    return true;
}

function phone()
{
document.getElementById("in_id_userphone").onkeypress=function(e)
{
var e=window.event || e
var keyunicode=e.charCode || e.keyCode
return (keyunicode>=48 && keyunicode<=57 )? true : false
}
}

function age()
{
document.getElementById("in_id_userage").onkeypress=function(e)
{
var e=window.event || e
var keyunicode=e.charCode || e.keyCode
return (keyunicode>=48 && keyunicode<=57 )? true : false
}
}









Related Tutorials/Questions & Answers:
How to find the first 6 characters of string in regex?
need the syntax to find the first 6 characters of string in regex using java...How to find the first 6 characters of string in regex?  How to find the first 6 characters of string in regex. I know the Syntax
Java error cannot find symbol
the java error cannot find symbol. In this example a class name 'cannot find...Whenever a Compiler does not recognize a class name, Java displays an error “cannot find symbol”. The reason behind cannot find symbol error
Advertisements
Java error cannot find symbol
Java error cannot find symbol       The java error cannot find symbol... an error Java error cannot find symbol. Here is the video tutorial of "How
Java error cannot find symbol
Java error cannot find symbol In this section you will learn about "cannot find symbol" in java. Java cannot find symbol is a type of error occurs... the variable in use its trying to refer, then it will give a error cannot find symbol
install jdk 6 - Java Beginners
install jdk 6  sir i have installed my jdk1.6 but dont know how to run, could you please help me i this  Hi Friend, Please visit the following link: http://www.roseindia.net/java/learn-java-in-a-day/download
Technologies in Java EE 6
In this section, we will take a brief look over the technologies in Java EE 6
install jdk 6 - Java Beginners
install jdk 6  sir i have installed my jdk1.6 but dont know how to run, could you please help me i
Java 6 features - Java Interview Questions
Java 6 features  What are the advanced features added in Java 6 compared to Java 5
Some error find whats the problem
Some error find whats the problem  import java.io.*; public class Replace { public void main()throwsIoException { InputStreamReader = new... not use Split method   Java replace string import java.io.*; public class
http status 500 error in tomcat 6 while using eclipse helios
http status 500 error in tomcat 6 while using eclipse helios  ...=6 color=red>"+msg+"<font>"); } public void destroy... The server encountered an internal error () that prevented it from fulfilling
http status 500 error in tomcat 6 while using eclipse helios
http status 500 error in tomcat 6 while using eclipse helios  ...=6 color=red>"+msg+"<font>"); } public void destroy... The server encountered an internal error () that prevented it from fulfilling
http status 500 error in tomcat 6 while using eclipse helios
http status 500 error in tomcat 6 while using eclipse helios  ...=6 color=red>"+msg+"<font>"); } public void destroy... The server encountered an internal error () that prevented it from fulfilling
http status 500 error in tomcat 6 while using eclipse helios
http status 500 error in tomcat 6 while using eclipse helios  ...=6 color=red>"+msg+"<font>"); } public void destroy... The server encountered an internal error () that prevented it from fulfilling
http status 500 error in tomcat 6 while using eclipse helios
http status 500 error in tomcat 6 while using eclipse helios  ...=6 color=red>"+msg+"<font>"); } public void destroy... The server encountered an internal error () that prevented it from fulfilling
Cookie in Java EE 6
Cookie in Java EE 6 In this tutorial you will learn about the changes made in Cookie in Java EE 6. Cookie is an information that contains in a text form... cookies and the size of per cookie may fix by 4 KB. In Java EE 6 some new methods
ServletRequest Java EE 6
ServletRequest Java EE 6 In this section we have discussed about the changes made in ServletRequest interface in Java 6. There is no changes made...;br> <b>Newly added methods example of ServletRequest in Java 6.</b>
Java SE 6
Java SE 6      ... MicroSystems has released the Java SE 6 on Monday December 11. So go...; These are the major new Features in JAVA SE 6 New
java bits 6 - Java Interview Questions
java bits 6  Given: ? d is a valid, non-null Date object ? df is a valid, non-null DateFormat object set to the current locale What outputs the current locales country name and the appropriate version of d?s date? A. Locale
Error 500: WSWS3142E: Error: Could not find Web services engine. - WebSevices
Error Could not find Web services engine   Hi...: faultNode: faultDetail: {}:return code: 500 Error 500: WSWS3142E: Error: Could not find Web services engine. { http://xml.apache.org/axis
ServletContext Java EE 6
ServletContext Java EE 6 In this tutorial you will learn about the modification in ServletContext interface's made in Java EE 6. Definition of ServletContext... the <context-param> from here. In the Java EE 6 there are various
Error 500: WSWS3142E: Error: Could not find Web services engine. - WebSevices
Error 500 WSWS3142E Error Could not find Web services engine  Hi all, I am getting the following error.Error 500: WSWS3142E: Error: Could not find Web services engine. Please Help. Thanks in Advance
Key features in Java EE 6
In this section, we will take a brief look over key features in Java EE 6
find and replace in java
find and replace in java  Need 'find and replace' function in Java to find special keyword in XMl such as @,#,!,%..and replace with their corresponding entities
could not find the main class programm will exit - error
could not find the main class programm will exit - error  when i tried to run the below mentioned programmed it gives a error states - could not find main class programm will exit. class Car { String name: String Color
i cant find any compile time error but there is runtime error.
i cant find any compile time error but there is runtime error.  ...){ System.out.println("Error:connection not created"); }   Hi...("Error is:" + s.getMessage()); } } catch (Exception e
java find the error6
Java find the error 6  <script type="text/javascript"> function validation() { var name=document.forms["insert"]["in_username"]; var age=document.forms["insert"]["in_userage"]; var address=document.forms
Difference Between Java 5 and Java 6
Difference Between Java 5 and Java 6 Today Java has become one of the most... journey to reach as java 6, and hence it is important to know the difference between Java 5 and Java 6. Initially it was releases in 1995 as Java (1.0
cannot find java.exe error while opening netbean5.5 - IDE Questions
cannot find java.exe error while opening netbean5.5  HI, 1)i am working netbean5.5 tool.I got the error of cannot find c:\programfiles\java... is windows 3 occured while loading the java vm(launching error anywhere), How can i
JSP cannot find symbol error - JSP-Servlet
JSP cannot find symbol error  Suppose-- we created 'a.jsp' in which we make a database connection... how to retrieve 'new' here... If I want to access the 'new' string within the form what should i do???  
How to eliminate error," Could not find the main class: filecopy.FileCopy. Program will exit." ?
How to eliminate error," Could not find the main class: filecopy.FileCopy....) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: filecopy.FileCopy. Program will exit. Exception in thread "main" Java
Difference between Java 6 and Java 7
to reach as java 6, and hence it is important to know the difference between Java 6 and Java 7. To know the basic difference between Java 6 and Java7, let us first know in brief about these. Java Version 6: First of all
Tutorials   
Java Spring Hibernate Struts Training Retrieve database from the table dynamically in jsp from oracle using servlet What does core Java include? java What are some way to learn Java quickly? Is it required to learn Java before learning Java Script? Is it necessary to learn java script before learning PHP? Are HTML5 and Java Script boosts Java career? Is Java object oriented? Fingerprint application with Java Uninstall Oracle Virtual Box JSON to HashMap Free Java online Training I want example of Control Statement in Java ANSI Color Codes with Python Create a Program that Calculates Input What is difference between JDK,JRE and JVM? How to see ubuntu version on server? How to get Page Source in Selenium (WebDriver) using Java? The path to the driver executable must be set by the webdriver.gecko.driver system property parse data from a link in java Java Program Qns using BlueJ How to fix HAX Kernel Module Is Not Installed error? Installing Audacity Looking for code Logic to check track changes & Coments in MSWord, MSWordx, MSExcel, MSExcelx is ON/OFF Installing JDK on Mac SAX Parser exception ERROR 601 (42P00): Syntax error. Encountered Thread java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory How to install Ubuntu 16.04 LTS? HttpServletRequest cannot be resolved to a type in eclipse - Solved Unhandled event loop exception GC overhead limit exceeded Spring Data jpa with apache phoenix Caused by: java.lang.IllegalArgumentException: Not a host:port pair: PBUF o.a.h.h.z.RecoverableZooKeeper - Possibly transient ZooKeeper, quorum= com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager class not found com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager not found How to download and install Java 8 on Windows? How to uninstall JDK 7? How to install gtk-doc-tools package in Ubuntu? How to install Oracle JDK 8 on Ubuntu? ejabberd_ctl.beam not found - Solved How to convert date to UTC format in Java? How to install autoconf, automake and libtool in Ubuntu 15.10? How to convert current date to mm dd yyyy format in Java? How to convert current date to dd mm yyyy format in Java? How to stop window closing in "internalFrameClosing" event. How to find list of all index in Neo4j? neo4j-server.properties file location SASLError using PLAIN: not-authorized

Ads

 
Advertisement null

Ads