Yes for ajax what you would do is

$display = $this->requestaction('/controller/ajaxmethod',
array('return', 'bare'));
$this->set('display', $display);

Then in your main view this is an echo $display;  Then from then on out
the ajax will update the div.  Or if they refresh it will grab that
ajax method again.

Also, to degrade without javascript you need to use the RequestHandler
to see if the call isAjax or not and if it isn't then that ajaxmethod
will need to redirect back to it's called method to refresh the page.


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