Hi,
I have used this code:
<?=$ajax->drag('div'.$i, array('revert' => false))?>
to successfully create a few draggable divs.
I want to use a callback to run a function after the div has been
dropped. So I tried to use "onEnd" as seen here:
http://wiki.github.com/madrobby/scriptaculous/draggable (I got this
link from cake/libs/view/helpers/ajax.php)
Is this possible? If so, I don't seem to be getting the syntax right.
<?=$ajax->drag('div'.$i, array('revert' => false, 'onEnd' => 'test
()'))?>
Can anybody help me out?
Thanks,
James.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---