I think at this point I would just write the link with the onclick by
hand. the $ajax->link function isn't really made for this. The other
option, if you're a javascript purist, is to write the link by hand,
and then use the $javascript->event to watch for the onclick.
Personally, I think the link you pasted in that post would work just
fine.

379 the manifesto wrote:
> Hi - I'm using this for remote requests...
>
> echo $ajax->link('View', "/projects/view_project_mini/$tmp_id",
>                        array('update' => "$update",
>                        'complete' => "new Effect.BlindDown('$update');"
>                        ));
>
>
> I would like to include a 'Close' link on each of the remote request
> pages, and would normally do something like:
>
>
> <a href="#" title="Close this section" onClick="closePage();">Close</a>
>
> Which would call the closePage() Js function.
>
> -----------------------------------------------------------------
>
> What is the syntax for firing custom Javascript / Ajax or Scriptaculous
> functions with AjaxHelper please?
>
>
> eg:           echo $ajax->link('Close',
>                        'url' => null,
>                        array('myJsFunction' => "$open_div"
>                        ));
> 
> 
> 
> 
> Thanks....


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

Reply via email to