Click here to Skip to main content
15,898,036 members
Home / Discussions / Database
   

Database

 
Questionblood Pressure Pin
Jassim Rahma25-Feb-10 20:43
Jassim Rahma25-Feb-10 20:43 
AnswerRe: blood Pressure Pin
Not Active26-Feb-10 0:07
mentorNot Active26-Feb-10 0:07 
AnswerRe: blood Pressure Pin
i.j.russell26-Feb-10 2:12
i.j.russell26-Feb-10 2:12 
AnswerRe: blood Pressure Pin
T M Gray26-Feb-10 11:54
T M Gray26-Feb-10 11:54 
GeneralRe: blood Pressure Pin
Jassim Rahma26-Feb-10 18:13
Jassim Rahma26-Feb-10 18:13 
QuestionHow rollback tran in while loop Pin
amit sahu2025-Feb-10 20:34
amit sahu2025-Feb-10 20:34 
AnswerRe: How rollback tran in while loop Pin
Pranay Rana25-Feb-10 21:27
professionalPranay Rana25-Feb-10 21:27 
Questionjavascript calculation total not working Pin
esebagel25-Feb-10 10:40
esebagel25-Feb-10 10:40 
I can't get the Total box to calculate. I am trying to create an online invoice for my customer to print from my webpage. I have scoured the internet looking for some help, but it doesn't help that I am clueless about javascript. This is what I have tried: In my table, all I want to happen is for the user to type in a price in the Amount boxes and then have a total at the bottom. Seems pretty basic, but I just don't understand why it won't work (not really sure of what I am doing)

Can somebody please help me?
The form itself can be found at www.ahtcsonline.com/invoice.html

Thank you in advance,
Evan


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

{
var amount, amount2, amount3, amount4, amount5, amount6, amount7, amount8, amount9, amount10;

Amount = document.Invamt.Amount.value;
Amount2 = document.Invamt.Amount2.value;
Amount3 = document.Invamt.Amount3.value;
Amount4 = document.Invamt.Amount4.value;
Amount5 = document.Invamt.Amount5.value;
Amount6 = document.Invamt.Amount6.value;
Amount7 = document.Invamt.Amount7.value;
Amount8 = document.Invamt.Amount8.value;
Amount9 = document.Invamt.Amount9.value;
Amount10 = document.Invamt.Amount10.value;
Total = document.Invamt.Total.value;

document.Invamt.Total.value = (amount + amount2 + amount3 + amount4 + amount5 + amount6 + amount7 + amount8 + amount9 + amount10);

}
}
</script>
</head>

<table width="738" border="1">
<tr class="Title-centered">
<td width="214" align="left"><div align="center"><strong>Name of Attendee</strong></div></td>
<td width="229"><div align="center"><strong>Description</strong></div></td>
<td width="118"><div align="center"><strong>Amount</strong></div></td>
</tr>
<tr>
<td><div align="center"><span class="style15">
<input name="name" type="text" class="Input_box" id="name" size="40" />
</span></div></td>
<td><div align="center"><span class="style12">
<select name="select_class" class="Input_box" id="select_class">
<option selected="selected">--Select a Class-- </option>
<option>TRACS 202c</option>
<option>Special Claims</option>
<option>Enterprise Income Verification</option>
<option>Tenant File Management</option>
<option>Secure System</option>
<option>iMAX</option>
<option>Section 504 </option>
</select>
</span></div></td>
<td><div align="center">$
<input name="Amount" type="text" class="Input_box" id="Amount" size="15" />
</div></td>
</tr>
<tr>
<td><div align="center"><span class="style15">
<input name="name2" type="text" class="Input_box" id="name2" size="40" />
</span></div></td>
<td><div align="center"><span class="style12">
<select name="select_class2" class="Input_box" id="select_class2">
<option selected="selected">--Select a Class-- </option>
<option>TRACS 202c</option>
<option>Special Claims</option>
<option>Enterprise Income Verification</option>
<option>Tenant File Management</option>
<option>Secure System</option>
<option>iMAX</option>
<option>Section 504 </option>
</select>
</span></div></td>
<td><div align="center">$
<input name="Amount2" type="text" class="Input_box" id="Amount2" size="15" />
</div></td>
</tr>
<tr>
<td><div align="center"><span class="style15">
<input name="name3" type="text" class="Input_box" id="name3" size="40" />
</span></div></td>
<td><div align="center"><span class="style12">
<select name="select_class3" class="Input_box" id="select_class3">
<option selected="selected">--Select a Class-- </option>
<option>TRACS 202c</option>
<option>Special Claims</option>
<option>Enterprise Income Verification</option>
<option>Tenant File Management</option>
<option>Secure System</option>
<option>iMAX</option>
<option>Section 504 </option>
</select>
</span></div></td>
<td><div align="center">$
<input name="Amount3" type="text" class="Input_box" id="Amount3" size="15" />
</div></td>
</tr>
<tr>
<td><div align="center"><span class="style15">
<input name="name4" type="text" class="Input_box" id="name4" size="40" />
</span></div></td>
<td><div align="center"><span class="style12">
<select name="select_class4" class="Input_box" id="select_class4">
<option selected="selected">--Select a Class-- </option>
<option>TRACS 202c</option>
<option>Special Claims</option>
<option>Enterprise Income Verification</option>
<option>Tenant File Management</option>
<option>Secure System</option>
<option>iMAX</option>
<option>Section 504 </option>
</select>
</span></div></td>
<td><div align="center">$
<input name="Amount4" type="text" class="Input_box" id="Amount4" size="15" />
</div></td>
</tr>
<tr>
<td><div align="center"><span class="style15">
<input name="name5" type="text" class="Input_box" id="name5" size="40" />
</span></div></td>
<td><div align="center"><span class="style12">
<select name="select_class5" class="Input_box" id="select_class5">
<option selected="selected">--Select a Class-- </option>
<option>TRACS 202c</option>
<option>Special Claims</option>
<option>Enterprise Income Verification</option>
<option>Tenant File Management</option>
<option>Secure System</option>
<option>iMAX</option>
<option>Section 504 </option>
</select>
</span></div></td>
<td><div align="center">$
<input name="Amount5" type="text" class="Input_box" id="Amount5" size="15" />
</div></td>
</tr>
<tr>
<td><div align="center"><span class="style15">
<input name="name6" type="text" class="Input_box" id="name6" size="40" />
</span></div></td>
<td><div align="center"><span class="style12">
<select name="select_class6" class="Input_box" id="select_class6">
<option selected="selected">--Select a Class-- </option>
<option>TRACS 202c</option>
<option>Special Claims</option>
<option>Enterprise Income Verification</option>
<option>Tenant File Management</option>
<option>Secure System</option>
<option>iMAX</option>
<option>Section 504 </option>
</select>
</span></div></td>
<td><div align="center">$
<input name="Amount6" type="text" class="Input_box" id="Amount6" size="15" />
</div></td>
</tr>
<tr>
<td><div align="center"><span class="style15">
<input name="name7" type="text" class="Input_box" id="name7" size="40" />
</span></div></td>
<td><div align="center"><span class="style12">
<select name="select_class7" class="Input_box" id="select_class7">
<option selected="selected">--Select a Class-- </option>
<option>TRACS 202c</option>
<option>Special Claims</option>
<option>Enterprise Income Verification</option>
<option>Tenant File Management</option>
<option>Secure System</option>
<option>iMAX</option>
<option>Section 504 </option>
</select>
</span></div></td>
<td><div align="center">$
<input name="Amount7" type="text" class="Input_box" id="Amount7" size="15" />
</div></td>
</tr>
<tr>
<td><div align="center"><span class="style15">
<input name="name8" type="text" class="Input_box" id="name8" size="40" />
</span></div></td>
<td><div align="center"><span class="style12">
<select name="select_class8" class="Input_box" id="select_class8">
<option selected="selected">--Select a Class-- </option>
<option>TRACS 202c</option>
<option>Special Claims</option>
<option>Enterprise Income Verification</option>
<option>Tenant File Management</option>
<option>Secure System</option>
<option>iMAX</option>
<option>Section 504 </option>
</select>
</span></div></td>
<td><div align="center">$
<input name="Amount8" type="text" class="Input_box" id="Amount8" size="15" />
</div></td>
</tr>
<tr>
<td><div align="center"><span class="style15">
<input name="name9" type="text" class="Input_box" id="name9" size="40" />
</span></div></td>
<td><div align="center"><span class="style12">
<select name="select_class9" class="Input_box" id="select_class9">
<option selected="selected">--Select a Class-- </option>
<option>TRACS 202c</option>
<option>Special Claims</option>
<option>Enterprise Income Verification</option>
<option>Tenant File Management</option>
<option>Secure System</option>
<option>iMAX</option>
<option>Section 504 </option>
</select>
</span></div></td>
<td><div align="center">$
<input name="Amount9" type="text" class="Input_box" id="Amount9" size="15" />
</div></td>
</tr>
<tr>
<td><div align="center"><span class="style15">
<input name="name10" type="text" class="Input_box" id="name10" size="40" />
</span></div></td>
<td><div align="center"><span class="style12">
<select name="select_class10" class="Input_box" id="select_class10">
<option selected="selected">--Select a Class-- </option>
<option>TRACS 202c</option>
<option>Special Claims</option>
<option>Enterprise Income Verification</option>
<option>Tenant File Management</option>
<option>Secure System</option>
<option>iMAX</option>
<option>Section 504 </option>
</select>
</span></div></td>
<td><div align="center">$
<input name="Amount10" type="text" class="Input_box" id="Amount10" size="15" />
</div></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="standard_label">Terms: NET 15 from class date</td>
<td><div align="right" class="Title"><strong>Total Amount Due</strong>:</div></td>
<td align="center">$
<input name="total" type="text" class="Input_box" id="total"size="15">&nbsp;&nbsp;<input type="button" value="Calculate" onclick="totalamountdue();">
<br></tr>
</table>
AnswerRe: javascript calculation total not working Pin
i.j.russell25-Feb-10 10:49
i.j.russell25-Feb-10 10:49 
GeneralRe: javascript calculation total not working Pin
esebagel25-Feb-10 10:55
esebagel25-Feb-10 10:55 
QuestionWriting Date back to SQL Anywhere DB - Exception Thrown Pin
MWRivera25-Feb-10 10:01
MWRivera25-Feb-10 10:01 
AnswerRe: Writing Date back to SQL Anywhere DB - Exception Thrown Pin
Richard MacCutchan25-Feb-10 10:34
mveRichard MacCutchan25-Feb-10 10:34 
GeneralRe: Writing Date back to SQL Anywhere DB - Exception Thrown Pin
MWRivera25-Feb-10 10:46
MWRivera25-Feb-10 10:46 
GeneralRe: Writing Date back to SQL Anywhere DB - Exception Thrown Pin
Richard MacCutchan25-Feb-10 11:29
mveRichard MacCutchan25-Feb-10 11:29 
GeneralRe: Writing Date back to SQL Anywhere DB - Exception Thrown Pin
MWRivera1-Mar-10 6:13
MWRivera1-Mar-10 6:13 
Question<ROOT> xml sql Pin
Qendro25-Feb-10 9:26
Qendro25-Feb-10 9:26 
AnswerRe: xml sql Pin
Mycroft Holmes25-Feb-10 10:57
professionalMycroft Holmes25-Feb-10 10:57 
GeneralRe: xml sql Pin
Not Active25-Feb-10 14:16
mentorNot Active25-Feb-10 14:16 
GeneralRe: xml sql Pin
Mycroft Holmes25-Feb-10 14:22
professionalMycroft Holmes25-Feb-10 14:22 
GeneralRe: xml sql Pin
SilimSayo26-Feb-10 9:48
SilimSayo26-Feb-10 9:48 
GeneralRe: xml sql Pin
Mycroft Holmes26-Feb-10 10:54
professionalMycroft Holmes26-Feb-10 10:54 
GeneralRe: xml sql Pin
SilimSayo27-Feb-10 18:13
SilimSayo27-Feb-10 18:13 
GeneralRe: xml sql Pin
Mycroft Holmes27-Feb-10 20:51
professionalMycroft Holmes27-Feb-10 20:51 
GeneralRe: xml sql Pin
SilimSayo1-Mar-10 16:43
SilimSayo1-Mar-10 16:43 
GeneralRe: xml sql Pin
Mycroft Holmes1-Mar-10 18:10
professionalMycroft Holmes1-Mar-10 18:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.