Quick answer.. you dont.
Using the ajax helper writes inline javascript code ( jquery isn't about
inline code. )

Longer answer. Use the "Head Helper" from rossoft ( google for it ) to
include javascript into the head of your views. Give the link a valid id or
class name ( or get good with css descendent / xpath selection ) and write
the jquery function yourself.

Abba



dani-21 wrote:
> 
> 
> I've been using CakePHP's ajax helper based on "prototype".
> 
> Now I'd like to use jQuery instead ...
> 
> 1. How do I transform:
> 
> $ajax->link("Guestbook", "/ajaxpages/guestbook/", array("update" =>
> "content", "loading" => "Element.hide('content');
> Element.show('spinning_image')", 'complete'=>"Element.show('content');
> Element.hide('spinning_image')"));
> 
> into jQuery syntax?
> 
> 
> 2. When will CakePHP have a jQuery helper?
> 
> 
> many thanks!
> 
> 
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jQuery-question%21-tf3391934.html#a9445371
Sent from the CakePHP mailing list archive at Nabble.com.


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