Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Creating Shopping Cart..
Old 12-30-2008, 07:06 PM Creating Shopping Cart..
Skilled Talker

Posts: 70
Location: Atlanta, GA
Trades: 0
Hello guys.

This is the most difficult JavaScript problem I've faced so far, but I have to get through it. It's a sample shopping cart. It's also very long so I'll just ask questions piece by piece.

For now, I would like to know why my function that's suppose to add dependent 'options' to a select tag isn't working...

Here's the site: http://www.ibtestsite.info/purchasepage.html

There is a 'sock' item and a 'polish' item. There are two kinds you can select for each, and with each selection there are two types that are suppose to appear in the adjacent blank 'select' tag to each item. Any suggestion is appreciated. Attached is the JavaScript file.

Please ignore the HTML coding..I did it in about 45 mins (which is a record for me ) and I don't care what it looks like in IE right now. Please view in Firefox/Mozilla. Thanks.
Attached Files
File Type: txt shopping_cart(sample_c).txt (5.5 KB, 2 views)
LayneMitch is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-30-2008, 08:26 PM Re: Creating Shopping Cart..
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
I get 2 different errors when I change the value of a select menu.
Code:
Error: sub_sel1 is null
File: http://www.ibtestsite.info/javascript/shopping_cart(sample_c).js
Line: 118
for the first

and
Code:
Error: addPolishOpts is not defined
File: http://www.ibtestsite.info/javascript/shopping_cart(sample_c).js
Line: 26
for the second.
I don't really feel like working myself through ~150 lines of code at the moment, though.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 12-30-2008, 09:16 PM Re: Creating Shopping Cart..
Skilled Talker

Posts: 70
Location: Atlanta, GA
Trades: 0
Quote:
Originally Posted by Insensus View Post
I get 2 different errors when I change the value of a select menu.
Code:
Error: sub_sel1 is null
File: http://www.ibtestsite.info/javascript/shopping_cart(sample_c).js
Line: 118
for the first
This is an issue as well..as I continue to correct things through 'error console', I don't understand why the above is 'null'....but hopefully I'll find out why as I continue to play around with the code.

If ever you get time to advise further, it would be appreciated.
LayneMitch is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Creating Shopping Cart..
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11686 seconds with 13 queries