Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

multiplication function in jsp using scriptlet function

Ads

 
 

Share on Google+Share on Google+

FATANIA SUMEET
multiplication function in jsp using scriptlet function
0 Answer(s)      3 years and 5 months ago
Posted in : JSP-Servlet

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>

Ads
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
Handle mail function using JSP & Servlet
Handle mail function using JSP & Servlet  Dear Sir, for my final year project i want to add email function to confirm registration & confirm appointment. I'm using JSP & Servlet and apache web server. I'm developing
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
jsp function - JSP-Servlet
jsp function  how to make function in jsp... i want example of jsp... an Example We can write functions or methods into JSP using the Declaratives tags... or print the data from database using JSP. http://www.roseindia.net/jsp/submit
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
calling function - JSP-Servlet
calling function  Hai, How to call a java file in jsp file... : 1.Create a jsp page "test.jsp" Example of Extends Attribute of page Directive in JSP 2.Use "import" attribute in JSP
JSP Scriptlet
JSP Scriptlet   Explain JSP Scriptlet and give the syntax of this Scriplet.   Hi, The JSP Scriptlet can contain any number of language... in the page scripting language. JSP Scriptlet Syntax is: <% //java codes
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
Help with javascript function - JSP-Servlet
is that the function BookSeat() to change the value of the button being clicked to "You... properties of those clicked buttons to be transferred to the next jsp page. ----So what should i write in the BookSeat() function that'll accomplish
calling zipping function - JSP-Servlet
calling zipping function  Hi, Is it possible to zip a jsp file. I wrote a java function for zipping a file.How to call that java file (zipping function ) in JSP ? pls help me Thanks.... 
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
how to invoket javascript function in JSP - JSP-Interview Questions
how to invoket javascript function in JSP  Dear Sir, my question is how to invoke javascript function written in .js file into our JSP. using which tag in JSP this is possible
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
JSP Scriptlet Tag
JSP Scriptlet Tag   Defined JSP Scriptlet Tag ?   A scriptlet tag is used within a Java Server page to execute a java source code scriplet... the code in between the Scriptlet tag accesses any variable or bean declared. <
callig jsp file from javascript function - JSP-Servlet
callig jsp file from javascript function  I want to call a jsp file from javascript function. What I want to do is Whenever a user clicks on a form in html, the function should call specified jsp file.The form has no dynamic
How can we get second of the current time using date function?
How can we get second of the current time using date function?  How can we get second of the current time using date function
multiple form with multiple function in 1 jsp - JSP-Servlet
multiple form with multiple function in 1 jsp  Hi, I'm using Netbean... in triggering my jsp with 2 forms as 1 for registration and 1 for log in. I need to trigger each form to call several function when user click buttons of these forms
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
isNaN function
isNaN function  What does isNaN function do
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