Posted by Jim Michaels on 03/02/06 00:07
"Viz" <johnviz@comcast.net> wrote in message
news:fo-dnZcAHsbhe2beRVn-pw@comcast.com...
>I own a computer business and I need some help with my online computer
>configurator.
>
> I have it setup to where a customer can configure their computer and click
> "update price" and it will show a new update price.
>
> What I want to do now, is take that updated price and pass along to a
> confirmation page. Once the customer proceeds from the confirmation page
> to the payment page I want that variable to passed along again as a hidden
> variable.
>
> Does that make sense to anyone?
>
> Here is the script that spits out the updated price on configurator page:
> Any help would be appreciated.
>
> <script language="JavaScript"><!--
> function sum(objRef) {
> var result = 439.99;
> result += (objRef.office_case.value - 0);
> result += (objRef.office_processor.value - 0);
> result += (objRef.office_memory.value - 0);
> result += (objRef.office_HD.value - 0);
> result += (objRef.office_Second_HD.value - 0);
> result += (objRef.office_OD.value - 0);
> result += (objRef.office_second_OD.value - 0);
> result += (objRef.office_Video.value - 0);
> result += (objRef.office_OS.value - 0);
> result += (objRef.office_keyboard.value - 0);
> result += (objRef.office_Monitor.value - 0);
> result += (objRef.office_printer.value - 0);
> result += (objRef.office_multimedia.value - 0);
> result += (objRef.office_Networking.value - 0);
> result += (objRef.office_Networking2.value - 0);
> result += (objRef.office_warranty.value - 0);
> result += (objRef.Shipping_Method.value -
> 0);document.getElementById("amount").innerHTML = result;
that line is cool for debugging, but innerHTML and outerHTML is an IE-only
feature, unfortunately.
> }
> //--></script>
> <table border=0>
> <tr>
> <td><b>Updated Price:</b> $</td>
> <td><div id="amount"></div></td>
> </tr>
>
>
[Back to original message]
|