I tried this also
$paginator->options(
array('update'=>'id_problem_index',
'onCreate' => 'hideProcessing();',
'onComplete' => 'showProcessing();',
'url' => array('controller' => 'problems', 'action'
=> 'index', 'slug' => $business_entity_slug),
'indicator' => 'LoadingDiv'));
using hideProcessing I was trying to hide content and using
showProcessing trying to show content.
But control is not going in these function.
Please help me for hiding content?
On Dec 19, 4:01 pm, bookme <[email protected]> wrote:
> Hi,
>
> I am trying CakePHP ajax pagination using prototype.js
>
> My code is below :
>
> <?php
> $paginator->options(
> array('update'=>'CustomerPaging',
> 'url'=>array('controller'=>'Customers',
> 'action'=>'display'),
> 'indicator' => 'LoadingDiv'));
> ?>
> <div id="LoadingDiv" style="display: none;">
> <?php echo $html->image('ajax-loader.gif'); ?>
> </div>
>
> <div id="CustomerPaging">
> <?php echo $this->renderElement('customers/paging'); ?>
> </div>
>
> I want to hide the content of div id "CustomerPaging" when 'ajax-
> loader.gif' image is being displayed on ajax request.
>
> I think that it can be done using Ajax.Responders.register, but where
> should this java script function be called ?
>
> Ajax.Responders.register({
> onCreate: showProcessing,
> onComplete: hideProcessing
>
> });
>
> Is there any way that I can hide the content of div Id
> "CustomerPaging" when the "loader" image is displaying using
> Prototype.js in CakePHP ajax pagination.
>
> Please help me
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---