- May 28, 2007
- 3,999
- 63
- 91
Hello all, this *should* be a little simpler, but then again may not be
. I've got most of this sucker written, i'm just having an issue getting the submit function to work. Currently I have it so that as you click the checkboxes it tallies the new price. What I need it to do however is to calculate the price and display the price in an Alert when pressing the Submit button. Something like "Your total cost is $xxx". In my code I imagine that would be "Your total cost is $( + f.blah.value + )." But alas I'm having issue getting it work right. Thought maybe a java guru here could tell me what i'm doing wrong (ok so a java noob could probably outcode me on this..i know i suck ballz)
. So please give me some help on this so I can say goodbye to Java for the rest of my life.
I've included my current code, and the code for my submit button. I'll add some XHTML fluff to it later.
I'm pretty sure I slaughtered the submit code cause it definitely does not work right, and I haven't even begun the alert function..but I don't think it'll be that difficult. (yeah...right..)
And I'll even add a poll for peoples enjoyment
.
EDIT: Because anand's code system sucks, I decided to zip up the .html file and host it on my server to make it easier for those to study it.
Linky for file
I've included my current code, and the code for my submit button. I'll add some XHTML fluff to it later.
I'm pretty sure I slaughtered the submit code cause it definitely does not work right, and I haven't even begun the alert function..but I don't think it'll be that difficult. (yeah...right..)
And I'll even add a poll for peoples enjoyment
EDIT: Because anand's code system sucks, I decided to zip up the .html file and host it on my server to make it easier for those to study it.
Linky for file
