Click to See Complete Forum and Search --> : 1st post


ozz
03-18-2003, 01:43 PM
Hi,
This is my first post in here so a big hello to you all.I need a little help with javascript on a webpage that i am creating and being a newbie I am totally stuck. I am trying to modify this little cart example

http://www.jsworkshop.com/js13/list23-1.html

so that if the user adds the same item twice then it updates the total; rather than just adding another underneath the first one. Secondly how would i go about adding a reset button to empty the cart. Any advice would be appreciated. :p

AdamGundry
03-18-2003, 03:14 PM
I've finished the modifications you asked for, you can view the modified script at this address:

http://www.agbs.co.uk/dev/ozz/list23-1.html

You will need to download the following files:
http://www.agbs.co.uk/dev/ozz/list23-1.html
http://www.agbs.co.uk/dev/ozz/products.html
http://www.agbs.co.uk/dev/ozz/cart_complete.html
http://www.agbs.co.uk/dev/ozz/fsclogo.gif

I suggest you modify the form in cart_complete.html to submit to an email address or your form-to-mail script.

Good luck

Adam

ozz
03-19-2003, 02:56 AM
Thanks a lot, you have managed to do exactly what i needed. Appreciate it.

Thanks again.:)