<h1>Drag Demo</h1>

<h2 class="products" id='product1'>drag me</h2>
<?php
    $options = array(
        'revert'        =>      true,
    );
    echo $ajax->drag('product1', $options);
?>
<div id="searchloading" style="display: none;"><?php echo
$html->image('ajax-loader.gif') ?></div>
<div id='cart' name='cart' style="height: 200px; border: 1px solid
gray; background-color: yellow;">
        <div id="items">

        </div>
</div>

    <?php
    $options = array(
        'accept'        =>      'products',
        'hoverclass'    =>      "cart-active"
    );

    $ajaxoptions = array(
        'url'   =>      '/drags/hello',
        'update'  => 'items',
        'loading' =>
"Element.hide('items');Element.show('searchloading');",
        'complete'=>
"Element.hide('searchloading');Effect.Appear('items')"
    );
    echo $ajax->dropRemote('cart', $options, $ajaxoptions);
    ?>


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to