Hi there,
I'm using remoteFunction to make an ajax call when the
page loads. But, unfortunately, when the request ends,
the call is not working properly. The specified element
(wrapper, in this case) is just getting blank, not being
updated with the corresponding ajax view's content.
The page is something like this
// myaction
<div id="wrapper">
<h1>Some page title...</h1>
<div id="divLoading">Loading... please wait</div>
</div>
<?php
$ajaxCall = $ajax->remoteFunction(array(
'url' => array('controller'=> 'mycontroller',
'action'=> 'myaction_ajax')
, 'indicator' => 'divLoading'
, 'update' => 'wrapper'
));
echo $javascript->link('prototype-1.6.0.3', false);
echo $javascript->codeBlock($ajaxCall, array('inline'=> false));
?>
Any helper will be appreciated.
Best regards.
--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105
http://mfandrade.wordpress.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---