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