Dear all,

i have some trouble about the pagination-component. To make it as simple as 
it could be: 
Basically my jquery-pagination works the way it should. I am using an exta 
view which will only be displayed if it is an ajax-request to avoid some 
layout-breaking problems. Works fine. 

I added some fadeIn / fadeOut effects like discripted here: 
http://book.cakephp.org/2.0/en/core-libraries/helpers/js.html#ajax-pagination

$this->Paginator->options(array(
    'update' => '#content',
    'evalScripts' => true,
    'before' => $this->Js->get('#busy-indicator')->effect('fadeIn', 
array('buffer' => false)),
    'complete' => $this->Js->get('#busy-indicator')->effect('fadeOut', 
array('buffer' => false)),));

Even this is working but it has some strange behavior: The loading image 
will only be display every second page. So if i switch from page 1 to 2 it 
will work, if i switch from 2 to 3 the loading-image will not be display 
but then from 3 to 4 it will work again and so one...

I could imagine this might some event chaining problem but i am not an 
expert on this so maybe some could give me an idea to continue my 
research...
One addition: I guess this could be connected with my second view, in my 
controller it looks like this:

//do some data-collecting stuff like grap session-data and so one...
if($this->request->is('ajax')){
            $this->render('paginator');   
} 

This view contains as mentioned before only the display-stuff for the 
paginator to stay clean with my layout...

uff, i hope that wasn't to complicated but sometimes we all need a bit 
jquery on top of our cakes :)


Thanks!
Best regards
Tobias

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to