multiplication function in jsp using scriptlet function

multiplication function in jsp using scriptlet function

how to display data on text filed at total amount???

FlashTemplatesDesign.com Free Css Templates

    <!-- <form method="link" action="logoutp.jsp">
        <input type="submit" value="logout">-->

    <script type="text/javascript">
        function txtnull(txt)
        {

        var a=txt.value;
            if(a=="")
          {
                alert("insert data");

        }
     }
     function sum(txt)
     {
     var txtFirstnumberValue = parseint(document.getElementById('txt1').value);
     var txtSecondnumberValue = parseint(document.getElementById('txt2').value);
     var result = parseint(txtFirstnumberValue) * parseint(txtSecondnumberValue);
     if(!isNULL(result))
         {
         document.getElementById('txt3').value = result;
            }
     }

    </script>
</head>
<body>
    <!--<p>
    <img src="E:\project\web\images/b.jpg"></p> -->
   <div id="content">

        <!-- header begins -->
       <div id="headertop">



        </div>
        <!-- header ends -->
        <!-- content begins -->
        <div id="main">
           <!-- <div id="leftcon" >-->
    <table width="379" height="277" border="0" style="margin-left:150px"  >
       <form action="save_inv.jsp" method="post">

       <tr>
           <td></td>
           <td></td>
       </tr>
           <tr>
               <td width="181">
               <font color="#000000">DATE::</font>
               </td>
           <td width="174">
               <input type="text" name="date" size="+30" value="<%= new java.util.Date() %>" />                   </td>
      </tr>
            <tr>
                <td>
                    <font color="#000000"> ZONE_NO::</font>
              </td>
                    <td>
                <select id="text" name="type"  ><br />
                         <option value="r1" >r1</option>
                         <option value="m1" >m1</option>
                         <option value="b1" >b1</option>
                </select>
                </td>
      </tr> <br />

           <tr>















          <
           <tr><td> 
                  <font color="#000000">PROUDCT_PRICE::</font></td><td><input type="text1" name="product_price" size="+30" onBlur="txtnull(product_price)" onBlur="sum(product_price)" >
            </td></tr> <br />
             <tr><td>
                <font color="#000000">QUENTITY::</font></td><td><input type="text2" name="total_quentity" size="+30" onBlur="txtnull(total_quentity)" onBlur="sum(total_quentity)" />
            </td></tr><br />
            <tr><td>
                  <font color="#000000">REMINING QUENTITY::</font></td><td><input type="text" name="remining_quentity" size="+30" onBlur="txtnull(remining_quentity)">
              </td></tr> <br />
           <tr><td> 
                     <font color="#000000">TOTAL_AMOUNT::</font></td><td><input type="text3" name="total_amount" size="+30" onBlur="txtnull(total_amount)" onBlur="sum(total_amount)" ></td></tr> <br />
           <tr>
             <td>

               <div align="right">
                 <input name="button" type="submit"  value="SAVE" align="center" />
               </div>
             <td><input name="button" type="submit"  value="SEARCH" align="center" />
          <!--   <input name="button" type="submit" value="DELETE" align="center"  />-->
           <!--  <input name="button" type="submit" value="BACK" align="center"  />--></td>
           <tr><br />
       </table>


</body>

View Answers

Ads









Related Tutorials/Questions & Answers:
multiplication function in jsp using scriptlet function
multiplication function in jsp using scriptlet function   how...">--> <script type="text/javascript"> function txtnull...; if(a=="") { alert("insert data"); } } function sum(txt
In JSP page, inside a javascript function, can I place a java code using scriptlet tag?
In JSP page, inside a javascript function, can I place a java code using... to checkListValue() method using scriptlet tag. My doubt here is, can I call the method checkListValue() using scriptlet tag inside the javascript function closeWind
Advertisements
using function
using function   using a function to find the value of v from the foiiowing expression 1v=1u+1*f
using function
using function  write a program using function overloading to accept any sentence and print vowels and consonants sepratly   Here is an example that accepts a sentence from the user and display the vowels and consonants
how to call the array variable in scriptlet from javascript function
and display them in the dropdown list by using the below function function myFunction...how to call the array variable in scriptlet from javascript function  This is the scriptlet code:- <% String[] abc={"saab","volvo","bmw","Benz
function
function  difference between function overloading and operator overloading
user defined function inside a jsp
user defined function inside a jsp  how to write a user defined function inside a jsp page
jsp scriptlet
jsp scriptlet  can a method defined in the jsp scriptlet
validation of strings using java function
validation of strings using java function  hi all, i am uploading data from csv file to data base where i took student id as string of length 6 char of the form abc123 will you please give me a function to validate this field
sum and avg function using HQL.
sum and avg function using HQL.  How to use sum and avg function... of them. sum() function returns summation of specified field in the table. avg() function returns average of specified field in the table. Example
How i write a function/method in jsp?
How i write a function/method in jsp?  How write the function/method in jsp? Using that method i can retrieve the value coming from database. give me example plz. Actually i want to show the list of user detail
Round of to a multiple of 5 without using function
Round of to a multiple of 5 without using function  Please help me out... U enter values like 239, 2543.876, 962.... Give me an equation without using any function which will give output of 240, 2545, 960 respectively
Round of to a multiple of 5 without using function
Round of to a multiple of 5 without using function  Please help me out... U enter values like 239, 2543.876, 962.... Give me an equation without using any function which will give output of 240, 2545, 960 respectively
populating textbox value from the database using onchange function,
populating textbox value from the database using onchange function,  ... selecting from dropdownlist. i have a form in jsp n I created the dropdown list... downlist it call onchange function with the selected value.. my issue issue
i want to pass Javascript value to JSP scriptlet..
i want to pass Javascript value to JSP scriptlet..  i am having a problem that, i am having a combo box in the JSP page when i select an item from... now i want to pass this value to JSP scriptlet
How ro convert char into string using recursive function in c#??
How ro convert char into string using recursive function in c#??  This coding is for java...but i want this in c# How ro convert char into string using recursive function in c#?? char [] ch={'H','E','L','L','o'}; TO ans
Program to Find Cube Root of any Number without using built in function
Program to Find Cube Root of any Number without using built in function  Please help me in finding cube root of any number without using Built in function in java
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
function addValue
function addValue  i have question about the javascript the function addvalue script is working to add some name but is not save on the html so please resolve my problem what can i do for addvalue function will be to save
function method
function method  input Rs. 12000 Discount= 10%, 8% = Rs.(12000-1200) = Rs.(10800-864) = Rs. 9936
If function in PHP
If function in PHP  Hi, Provide me the example of If function in PHP. Thanks   Hi, If function is PHP is used to check for some condition and the execute a block of code. He is an example of if() function in PHP
Calling a function
Calling a function  Hi, I have a function xyz() in php code. When a button is clicked it should execute that particular function for that i have... function function xyz() { } but this is not working can u tell me
function method
function method  input Rs. 12000 Discount= 10%, 8% = Rs.(12000-1200) = Rs.(10800-864) = Rs. 9936
disable function
disable function  Sir, I have called a java script function when one radio button is checked i want to disable this function when another radio button is checked ,both radio buttons are of same group Please help Thanks in advance
Displaying the values in text fields of a form from a javascript function in jsp
Displaying the values in text fields of a form from a javascript function... to call a javascript function by passing 3 values from applet. And i have... and javascript function must be available in the same web page. Any help
unoin function
unoin function  how to define a union function in java?(ex:a=a U b) how to write tha java code?give ex.   Java Union Function You have learnt union, intersection etc in Sets. Here the given code finds the union of two
How to change the value of a variable which is set in jsp (by jstl method) by calling the function from js?
which is set in jsp (by jstl method) by calling the function from js? I set the value in jsp by using jstl method for eg:'<'c:set var="name1" value="Add User...How to change the value of a variable which is set in jsp (by jstl method
function method
function method  i. void display(String str.int p)with one string... is an example where we have created a function that accepts a string and an integer...); } }   Here is an example where we have created a function that accepts
Function pointer in c
Function pointer in c  What is the difference between function call with function pointer and without function pointer(normal function call
basic function of computer system
basic function of computer system  What is the basic function of computer system

Ads