PHP Classes

File: examples/example_cart.php

Recommend this page to a friend!
  Classes of Enéas Gesing  >  AJAX Wrapper  >  examples/example_cart.php  >  Download  
File: examples/example_cart.php
Role: Example script
Content type: text/plain
Description: Simple Cart Example
Class: AJAX Wrapper
Implement AJAX functionality using Scriptaculous
Author: By
Last change: - Added js function
- Changed directory
Date: 15 years ago
Size: 813 bytes


Class file image Download
include "../Ajax.php";
$ajax = new Ajax();

<title>My Sample Cart</title>


body {
    font-size: 10px;
    font-family: Verdana;
#cart {
    position: absolute;
    left: 400px;
    top: 100px;
    border:1px solid #D5D5D5;

<div id="list"></div>

<img src="../image/cell1.png" id="cell1">
<img src="../image/cell2.png" id="cell2">
<img src="../image/cell3.png" id="cell3">


<div id="cart">Drag Items Here</div>

<?=$ajax->drop_receiving_element('cart', array('url' => 'example_cart_data.php', 'update' => 'cart'));?>