Jump to content
Killersites Forums

Beginner - Javascript Order Form


SunnyOne99
 Share

Recommended Posts

 

"Where practice makes nearly

 

perfect"

 

          &

 

nbsp;         &n

 

bsp;         &nb

 

sp; offbeatlogo.gif

 

alt="OffBeat Music Store" />

More items being added regularly; check

 

back often.

Better yet, stop by the store!

 

We've got your strings!

Bass </p><p> </p><p>Strings

D'Addario Bass

 

Strings - package of 4

 

 

 

 

Guitar </p><p> </p><p>Strings

Ernie Ball Guitar

 

Strings - package of 6

 

 

 

 

 

 

 

Name:

 

 

# of packages of Bass Strings:

 

name = "numBassStrings" value = "" onchange="updateOrder();"

 

/>

 

 

# of packages of Guitar Strings:

 

id="guitar" name = "numGuitarStrings" value = ""

 

onchange="updateOrder();" />

 

 

Days until pick-up:

 

name="pickupdays" value="" />

 

Subtotal:

 

value="" readonly="readonly" />

 

Tax:

 

readonly="readonly" />

 

Total:

 

readonly="readonly" />

 

 

 

onclick="placeOrder(this.form);"/>

 

 

 

Link to comment
Share on other sites

Thank you for the reply, Monkeysaurus! I did make that change and uploaded the updated file; alas, that didn't solve the problem... What's next? Thanks again for your help!!!

 

 

Hi, Firebug is showing an error on line 28:

 

if (stringString.indexOf("dozen") != -1) 

 

should be:

 

if (stringsString.indexOf("dozen") != -1)

 

If you could fix that, we can see what happens after that. :)

Link to comment
Share on other sites

Thank you for your help! I discovered the problem! I had not made the form name, "orderform" consistant throughout.

 

Thanks so much!!! :)

 

Well, the next problem is on line 15:

 

if (isNan(numGuitarStrings))

 

should be:

if (isNaN(numGuitarStrings))

 

I would recommend downloading Firebug and working through the errors as they appear in the console.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...