I'm using paginator on CakePHP 2. I already sent the paginator from the controller to the view. If I debug the next and prev methods of the paginator this is what I get:
debug($this->Paginator->next(null, null, array('class' => 'disabled')));
'<span class="next"><a href="/Project/Controller/method/127151/page:2" rel="next"></a></span>'
I need to do the pagination on a frame in the same page, so when the user click next or previous page, not all the page refresh, just the frame that I'm using to display the data. I will do that using the $.post method of Jquery, but I need the URL that the prev and next show within the href, not all the span and the other elements, something like $this->Html->url provides.
Someone know how can I retrieve the URL from the previous and next methods of the paginator?