If you want ajax actions with effects, you should not use ajax helper and write own JavaScript code for handling such action. Simpliest way is to run pre-load effect, on its finish (afterEffect callback) run AJAX call and on its finish (onComplete callback) run after-load effect.
On Jan 29, 4:15 am, WidePixels <[email protected]> wrote: > How do you add the effects to be used in the $ajax link? > > I have the 'scriptaculous.js?load=effects' inmy view file. It loads > fine. > > <?php echo $ajax->link('Test Link', '/artists/update_genres/', > > array('update'=>'test', > 'loading' => > 'Effect.BlindDown(\'loading\')', > 'loaded' => > 'Effect.BlindDown(\'test\',{duration: 0.5})')); ?> > > What happens is it works but nothing like it does on > thehttp://wiki.github.com/madrobby/scriptaculous/effect-blinddown > > it jumps, not smooth at all. > > I would prefer to use jquery as its all the rave but no documentation > on how to use it so for now I'm left with this. > > Can anyone explaine the proper way to used the effects? > > Thanks, > > Dave --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
