7 years ago
3
Topic

Hello :)

I just tried to display a page seblod list with AJAX but i can't get the pagination... 

id do this : 

$.ajax({ url:'index.php?option=com_cck&view=list&search=articles&task=search&Itemid=110' })

.done(function( html ) {

$( "#rendu" ).html( html );

});

it's display the page but not the pagination of the list... this is weird, because my list DO have a pagination who's working fine

Any idea please?

thx

Get a VIP membership
7 years ago
2
Level 1

Hie, no answer ?

i can't get the pagination of a seblod list with ajax... i just get the list, without the links of pagination...

any idea ?

thx

4229 Posts
Kadministrator
7 years ago
1
Level 2

Hi,

if url is he same s when you open page with browser also the result shuld be the same. But usually only parts of pages are loaded using ajax (by adding format=raw) as with normal url you get the whole page including site template.

7 years ago
0
Level 3

ok, thx, my mistake was the url wasn't good:  

i do this from the backoffice :

$.ajax({ url:window.location.host +'index.php?option=com_cck&view=list&search=articles&task=search&Itemid=110' })

.done(function( html ) {

$( "#rendu" ).html( html );

});

but he understood this : 

www.monsite/administrator/../index.php?option=com_cck&view=list&search=articles&task=search&Itemid=110

and the pagination was not loaded... but if i specifie the protocol, it's working :)

so i do

$.ajax({ url: window.location.protocol+'//'+window.location.host +'/'+'index.php?option=com_cck&view=list&search=articles&task=search&Itemid=110' })

Voila, thx :)

Get a Book for SEBLOD