views:

21

answers:

0

I have a url of my application http: //localhost/application/home/user/index where user is the controller and index is the action.

So in my menu I did:

echo $this->ajaxLink(
     "Item",
     $this->baseUrl."user/index",
     array('update' => '#container', 'method' => 'POST')
); 

Then when I click it the link is http:// localhost/application/home/# and it loads the result in the container...

But the result has a pagination (paginationControl) and in the pagination I put

echo $this->ajaxLink(
    $page,
    'user/index',
     array('update' => '#container', 'method' => 'POST')
);

and it DOES NOT work.

I´ve notice that when I manually change the url (from http:// localhost/application/home/# to http:// localhost/application/home/user/index/page/2 for example) and then click the pagination link it works. It seems that once the ajaxLink is loaded and I try using it in the same page it does not work.

Any ideas of what I should do to correct that and make it work as I want? Thanks