Execution Requirements

Shopping Bag utilizes JavaScript 1.2 and some CSS, so generation 3.x browsers need not apply. However, keep in mind that a significant number of users do shop, but don’t keep the latest browser loaded. You can easily remove the CSS to make Shopping Bag compatible with MSIE and NN 3.x.

As far as scalability goes, you should conservatively be able to cram at least 500 items into the Shopping Bag warehouse. After all, adding a single product takes only one line of code. I stopped testing after reaching close to 700 items on my 120 MHz PC with 128 Meg of RAM. So unless you’re competing with WalMart, Shopping Bag should work just fine.

Get JavaScript Application Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.