Link to home
Start Free TrialLog in
Avatar of WEhalt
WEhaltFlag for United States of America

asked on

Java - Total Fields on form load and reload

I have a javascript function called totalFields.  I would like it to run everytime any of the values is changed on the form, when the form is loaded, and when the form is (re) loaded with data.

How do I accomplishthis?  I have added attributes to some of the fields, but there must be a better way AND this does not calculate the totals when the data is loaded.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Inbound.aspx.vb" Inherits="Inbound" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Inbound</title>
    <link href="eDailyClose.css" type="text/css" rel="stylesheet" />
    <script language="javascript" type="text/javascript">

        function totalFields() {}
    </script>
</head>
<body onkeydown="return disableEnterKey(event);" >
    <form id="form1" runat="server" >
    <center>
        <asp:Table ID="tblDailyClose" runat="server" Width="1500px"  >
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial