I don't think switching from Prototype / Scriptaculous is such a good
idea unless you are familiar with the framework in question (moo.fx).
This is mainly because all of the ajax functionality built into cake
is dependant on the Prototype / Scriptaculous scripts.

By all means read up on the moo.fx library and use it in your project,
but that means you'll either have to write a cake helper to call
moo.fx functions or manually write the required javascript.

I personally use jQuery with Cake but I write the required javascript
myself without the help of cake.

On Mar 21, 12:25 pm, "skyblueink" <[EMAIL PROTECTED]> wrote:
> 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