Closed Thread Icon

Topic awaiting preservation: product page with checkboxes, tick to customise and add to cost (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8637" title="Pages that link to Topic awaiting preservation: product page with checkboxes, tick to customise and add to cost (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: product page with checkboxes, tick to customise and add to cost <span class="small">(Page 1 of 1)</span>\

 
sonicsnail
Bipolar (III) Inmate

From: Scotland
Insane since: Jun 2001

posted posted 05-05-2003 16:08

Hi all, (long time no see...)

I have been asked to create a page that should contain the specs of a PC system for sale. Below the specs should be some "optional extras" (CD burners, RAM, etc) which can be selected by the user.

The (simple??!) idea is to have a "Total cost" at the bottom of the page, and when ticks are added, the Total should rise.

What I know:

The host doesn't support anything serverside, so this is a job for good'ol JS. (maybe use a cgi script to email the form results?)
I'd like to use objects/arrays so the Optional Extras can be document.written dynamically and updated by the site owner.
Each array object would have (at least) two values - NAME and PRICE.
I can't find an example of this script anywhere! (Dell use this functionallity, but using page-refreshes)

What I don't know:

How to "subtract" when a tickbox is unticked (I've been thinking of using OnClick to add the value)
The search term to use to find help online!!

I'd appreciate any guidance... someone MUST have done this kind of thing before!

cheers,

Pete



Edit:: (long-time-no-UBB!)

[This message has been edited by sonicsnail (edited 05-05-2003).]

trib
Paranoid (IV) Inmate

From: Den Haag, Netherlands
Insane since: Sep 2002

posted posted 05-05-2003 17:50
quote:
How to "subtract" when a tickbox is unticked (I've been thinking of using OnClick to add the value)


Don't subtract .. just do the new total sum every time a change is made ...
Help online ?? ... make that a third element in the array and just open a window with that value as the url ...

Sorry to be brief, but I'm bogged down in work and wedding right now ... not time to think or explain.


Bug-free software only exisits in two places
A programmer's mind and a salesman's lips

« BackwardsOnwards »

Show Forum Drop Down Menu