Click to See Complete Forum and Search --> : Dummy needs simple script (I think)


mokitty
01-28-2003, 01:45 AM
Hi,

Dummy needs simpe java script. I need a java script to make and order (so tired I can't even explain it) I have made a menu with several choices to pick from, after picking one their supposed to click the order button which takes them to the shopping cart with their chosen selection.

So far I have it going to the shopping cart but no matter which choice you pick it goes to the same item in the shopping cart. PLEASE HELP ME!!!! I know it's probably a simple task but I'm lost.

Thanks,
Mokitty:confused:

mokitty
01-28-2003, 09:02 AM
Sorry - Here's a link to the page http://babytowne.com/store3/cozycover.htm It's the spot whet you can choose a fabric color. It doesn't matter what color I pick, it takes me to the same item in the shopping cart. I need to be able to tell it to pull up the right choice.

Thanks again,
Mokitty

mokitty
01-28-2003, 08:12 PM
Thanks Dave - I'm not sure I understand what you're saying. The drop down menu that has fabric choices. When it get's ordered it would need to go to the shopping cart with the correct choice, not go to the page where they are all listed. I can link it straight to the cart but I can't get it to bring in the correct fabric choice. When I link it straight to the shopping cart no matter what fabric choice is picked it jujst doesn't get the choice. Somewhere in the code each color choice needs to be able to go to the shopping adding the correct choice.

Hope you can help,

Thanks,
Mokitty

mokitty
01-28-2003, 11:15 PM
Dave - Thank you, thank you, thank you. I will try this and let you know how it works. I won't do it tonight, I am burned out from working on it today and getting nowhere. I'll try tomorrow and let you know.

Thanks again,
Mokitty

mokitty
01-29-2003, 05:56 PM
Well, I'm back. I added selection stuff you said to but not sure where to put

var sel = document.formName.elements["Select Fabric"];
if (sel.selectedIndex < 1) {
alert("No selection made.");
return false;
}
var Product_Code = sel.options[sel.selectedIndex].value;

I didn't think it was this complicated. I still need help

Thanks,
Mokitty

mokitty
01-29-2003, 06:30 PM
Hi Dave,

I'm afraid to say yes, you need to explain, if you don't mind. We have other sites like www.watersportsproducts.com with just single items that go to the shopping cart which was a breeze, but this one is so confusing to me. I feel super dumb on this one.

Thanks,
Mokitty

mokitty
01-29-2003, 07:23 PM
Dave - Thanks but I still don't understand what you're saying. I thought I had to have something in the method="post" action=""

Mokitty

mokitty
01-30-2003, 02:19 PM
Dave,

I have been working on this for days and I still can't get it to functions right. Please have a look at the page on the internet, choose a fabric color then click on the order button and you'll see, it takes you to the shopping cart but no matter which color fabric you choose you get the same results. NBow my question is in that action are is where I have to put the code to go the shopping cart but how the hell do I get it to function to put in the right choice.

Going crazy,
Mokitty

mokitty
01-30-2003, 10:09 PM
Hi Dave,

Thank you, thank you, thank you. The dummy doesn't know what you mean by code this function. What do I do with it and where do I put it?

Mokitty

mokitty
01-31-2003, 09:07 AM
Hi Dave,

OK, I put the code in, however it still doesn't bring up the right item in the cart. What am I doing wrong. it should be a lot simpler than that www.babytowne.com/cozycover.htm

This is driving me nuts

Mokitty

mokitty
01-31-2003, 04:50 PM
Dave - Still doesn't work right. I've tried everything. I have a template for this site. I'll try a couple other things.

Mokittty

mokitty
01-31-2003, 06:03 PM
Dave - I appreciate what you've done and I've done everything you've suggested but it doesn't work. I think there is still something misssing in the code or it would work.

Mokitty