I'm not familiar with javascript, but have had no problems in using
prototype and scriptaculous thanks to the good example I searched on
this group. But when I decided to migrate to lean  version of
prototype and moofx, it was not so easy. I coudn't find any examples
of moo.fx use in CakePHP.

I copied moo.fx.js and prototype.lite.js into webroot/js and included
them in layout file like the following. ( I downloaded the lastes
version of moo.fx, that is moo.fx2)

<?php echo $html->css('style'); ?>
<?php echo $html->charsetTag('UTF-8')?>
<?php echo $javascript->link('prototype.lite')?>
<?php echo $javascript->link('moo.fx')?>

Next snippet is what utilizes prototype.js and scriptaculous(it runs
great). Now I want to rewrite it into a moo.fx version. I know
Element.update is a part of prototype and could be also found in
prototype.lite, and Effect.Appear is a part of scriptaculous, which
should be replaced with a moo.fx counterpart(Correct me if wrong).
Could anyone help me rewrite it into a moo.fx version?

$options = array(
     'update'   => "$view",
     'url'      => "/test/content/?i=$i",
     'type'     => 'asynchronous',
     'complete' =>
"Effect.Appear($view);Element.update('entry','$entryShop');"
);
echo $javascript->event('window','load',$ajax-
>remoteFunction($options),false);


--~--~---------~--~----~------------~-------~--~----~
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