468,283 Members | 1,769 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,283 developers. It's quick & easy.

[Javascript] Code change question

RedSunFlowers32
Hi -

I am creating a form for my personal business site. I want people to be able to get their own shipping total for the item(s) they have purchased. I have another code from a different file I want to use. I am unclear on which lines to remove to stop the pop-up windows from asking the user to input their information. Could someone please point this out to me? Thank you!

Current code:
[HTML]<!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" lang="en" xml:lang = "en" dir="ltr">
<head>
<title>Invoice</title>
<style type="text/css">
h1 { font-family: "Trebuchet MS", "Helvetica", sans-serif; font-size: 1.5em }
h2 { font-family: "Trebuchet MS", "Helvetica", sans-serif; font-size: 1.2em }
body { font-family: "Trebuchet MS", "Helvetica", sans-serif }
legend { font-size: 1em }
td { font-size: .8em }
</style>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">
document.write("<h1>Discerning Women</h1>");
document.write("<h2>Jewelry for All Occassions</h2>");
// STOP HIDING FROM INCOMPATIBLE BROWSERS -->
</script>
</head>

<body onload="newInvoice();">
<form method="post" action="mailto:__MUNGED__?subject=Invoice" name="invoice">
<fieldset>
<legend>Invoice</legend>

<table border="0" width="100%" cellpadding="10">
<colgroup span="1" align="left" />
<colgroup span="3" align="right" />
<tr valign="top">
<td><label for="billto">Bill To</label><br />
<textarea name="billto" id="billto" cols="30" rows="5" tabindex="1"></textarea></td>
<td colspan="3"><br />
<label for="invoicenum">Invoice #&nbsp;</label><input type="text" name="invoicenum"
id="invoicenum" size="30" tabindex="2" /><br />

<label for="date">Date&nbsp;</label><input type="text" name="date" id="date" size="30" tabindex="3" /><br />
<label for="terms">Terms&nbsp;</label><input type="text" name="terms" id="terms" size="30" tabindex="4" /><br />
<label for="terms">Sales Rep&nbsp;</label><input type="text" name="salesrep" id="salesrep" size="30" tabindex="5" /></td>
</tr>
<tr valign="top">
<td>Description<br />
<input type="text" size="40" tabindex="6" /><br />

<input type="text" size="40" tabindex="10" /><br />
<input type="text" size="40" tabindex="14" /></td>
<td align="center">Quantity<br />
<input type="text" name="q1" id="q1" size="10" value="0" tabindex="7" onchange="calcLine1();" /><br />
<input type="text" name="q2" id="q2" size="10" value="0" tabindex="11" onchange="calcLine2();" /><br />
<input type="text" name="q3" id="q3" size="10" value="0" tabindex="15" onchange="calcLine3();" /></td>
<td align="center">Rate<br />
<input type="text" name="r1" id="r1" size="10" value="0" tabindex="8" onchange="calcLine1();" /><br />

<input type="text" name="r2" id="r2" size="10" value="0" tabindex="12" onchange="calcLine2();" /><br />
<input type="text" name="r3" id="r3" size="10" value="0" tabindex="16" onchange="calcLine3();" /></td>
<td align="center">Amount<br />
<input type="text" name="a1" id="a1" size="10" value="0" tabindex="9" /><br />
<input type="text" name="a2" id="a2" size="10" value="0" tabindex="13" /><br />
<input type="text" name="a3" id="a3" size="10" value="0" tabindex="17" /></td>
</tr>
</table>

</fieldset>
<p style="text-align: center"><button type="submit" tabindex="18">Submit Invoice</button>
<button type="reset" tabindex="19">Reset Invoice</button></p>
</form>
<script type="text/javascript" src="invoice_scripts.js">
</script>
</body>

</html>[/HTML]
Oct 30 '07 #1
2 1496
r035198x
13,262 8TB
Do not post questions in the articles section.
Moved to the forum section.
Oct 30 '07 #2
acoder
16,027 Expert Mod 8TB
Hi -

I am creating a form for my personal business site. I want people to be able to get their own shipping total for the item(s) they have purchased. I have another code from a different file I want to use. I am unclear on which lines to remove to stop the pop-up windows from asking the user to input their information. Could someone please point this out to me? Thank you!
You've not actually posted the JavaScript code. Post the code within the JavaScript file.
Oct 30 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.