Skip to Main Content
MooTools 1.3 Cookbook
book

MooTools 1.3 Cookbook

by Jay L Johnston
July 2011
Intermediate to advanced content levelIntermediate to advanced
276 pages
5h 11m
English
Packt Publishing
Content preview from MooTools 1.3 Cookbook

Allowing products in a shopping cart to be "put back" on the shelf

Having a firm grasp on the previous three recipes that are building blocks for what is happening in this example keeps us on track.

How to do it...

There is very little to removing the cart items. Our most difficult part is adding a widget with which our users will remove the products. The PNG format image with transparency is supported in all major browsers and adds a flair of professionalism to the cart.

... // change the Inventory level to a count of that product var cloned_html = $(newid).get('html'); cloned_html = cloned_html.replace( /Inventory/m,'Quantity'); $(newid).set('html',cloned_html); // add a return to shelf X at top right of each contaier new Element('a',{ class: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Jump Start Web Performance

Jump Start Web Performance

Craig Buckler

Publisher Resources

ISBN: 9781849515689Other