O'Reilly logo

Web Technology: Theory and Practice by M. Srinivasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4.17 A SHOPPING CART TABLE SORT EXAMPLE

A shopping cart is a non-trivial utility that is a part of any eCommerce system. There are multiple implementations possible, in practice, each depending in turn on the domain or the items that are being sold. Essentially, it is represented by a table which contains the items that are shopped, a field for quantity and then a field for price. In practice there could be a few more columns for amounts, and a few extra methods (or operations) apart from adding/removing/modifying the items in the cart. For now, assume a very simple set of columns arranged in the form of a table. The point is to demonstrate the dynamic construction of elements of the cart, viz. the table header, its format and its rows (representing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required