But if he is using any dynamic scripting language eg PHP he may need that stuff.
On Apr 4, 2008, at 5:15 PM, Paul Erskine wrote: A couple of quick things:
1. with the onclick, I think you need a semicolon at the end: "total_Prices();" . I'm not sure if its necessary, but it could be an issue. 2. I think using payment[x] is bad because it has the same format as an array. When you do ...form.payment[0].val... I believe its looking for an array. You might want to change your inputs to payment_0, payment_1, payment_2 - paul
On Fri, Apr 4, 2008 at 1:58 PM, Robert Poland < email@hidden> wrote: HI, I use this to call the following function. I had it working but somehow I broke it. I can't for the life of me see what I'm missing. Any suggestions? <input name="payment[0]" id="payment[0]" type="checkbox" value="15" /> ... <input id="total_amount_due" name="total_amount_due" value="" type="text" maxlength="10" /> <script type="text/_javascript_"> function total_Prices() { var a = Number(document.request_form.payment[0].value); var b = Number(document.request_form.payment[1].value); var c = Number(document.request_form.payment[2].value); var x = a + b + c; document.request_form.total_amount_due.value = x; } </script> Bob Poland - Fort Collins, CO _______________________________________________ Do not post admin requests to the list. They will be ignored. Web-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/web-dev/email@hidden This email sent to email@hidden
-- map in style...... www.googmappin.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Web-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/web-dev/email@hidden
This email sent to email@hidden
|