On 6/28/07, francky06l <[EMAIL PROTECTED]> wrote:
>
> to be more precise :
>
> $ajax->div('events');
> echo $ajax->remoteFunction(array('url' => '/events/index', 'update' =>
> 'events'));
> $ajax->divEnd('events');
>
Almost there, but not quite!! - but the pointer you gave allowed me to
solve it - thanks
For the archives next time someone is searching:
echo $ajax->div('events');
echo $javascript->codeBlock( $ajax->remoteFunction(array('url' =>
'/events/index', 'update' => 'events')) );
echo $ajax->divEnd('events');
That auto loads the div with /events/index view when the page loads,
at which point the actions in the div can take over. If you want
another way of putting it, I'm sort of trying to emulate something
like the task list demo (
http://www.grahambird.co.uk/cake/tutorials/ajax.php ) as part of a
wider 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?hl=en
-~----------~----~----~----~------~----~------~--~---