JavaScript for E-Commerce

Back | Contents | Next
Please note that this tutorial was first published in the year 2000, and is based on work conducted between 1997 and 2000. While we trust that it still constitutes useful tutorial material, it should not necessarily be construed as to impart best practice in the year 2017. For more details please see this blog post.

The Ordering Process - Modifications to item-initial.html

The item-initial.html file needs one tiny piece of JavaScript code added to it.

Source

New or modified code is displayed in bold text.


<html>

<head>

<script>
<!--
top.myOrderList.itemsVisible = true;
-->
</script>

</head>

<body>

</body>

</html>
			

Description

The code that we added sets the myOrderList.itemsVisible flag to false, so that if the customer presses the "Clear" button, the myOrderList.clear method will not attempt to uncheck a group of checkboxes that do not exist.


Back | Contents | Next

This tutorial has been translated to Serbo-Croatian language by Jovana Milutinovich from Webhostinggeeks.com.

This tutorial has been translated to Slovak by Juraj Rehorovsky from Coupofy team.

If you find this tutorial useful and want to show your apprectiation, a small donation is most welcome, either in Bitcoins to 19QpWDmZPmTqawcr8VsXcbdc4Znq1ecrza, or via PayPal.