News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
PHPBuilder.com:
Developing a Ajax-driven Shopping Cart with PHP and Prototype, Part 2
May 05, 2008 @ 07:58:21

PHPBuilder.com has continued their series looking at building an Ajax-driven shopping cart with part two posted today (part one here). Last time they laid the PHP foundation for the example app, this time they add another layer - the Ajax functionality to manage the current contents of the cart.

Finally, a link to the shopping cart is provided, although you could just as easily have displayed the cart contents on the same page. For the sake of brevity I'll just show you how to integrate the add feature, and will leave the subtraction mechanism to you as an exercise.

The Ajax frontend calls a managecart.php backend file that calls addToCart and deleteFromCart based on which type of "task" is passed to it.

1 comment voice your opinion now!
shopping cart prototype tutorial ajax backend javascript




Similar Posts

Robert Peake\'s Blog: Design Patterns, Ajax, and Application Supremacy

Stefan Mischook's Blog: Aprenda Programacion Orientada a Objetos en PHP

Chris Hartjes' Blog: Where Are The Good Development Tools For PHP?

Joshua Eichorn's Blog: Adding AJAX to a Website step by step, Part II

Developer Tutorials Blog: PHP array_walk(): Run an array through a function


Community Events







Don't see your event here?
Let us know!


cakephp book code PHP5 security ajax package developer application mysql zendframework release PEAR job database framework releases example conference zend

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework