Ajax pagination using JSON data

Cake has default ajax pagination feature, but the output is in html which is not a good idea and huge amount of data transfer.

I want to use JSON to reduce data transfer. Is there any "ready-made" stuff for pagination using json (and jQuery).

Asked by ABCoder, on 8/2/10

1 Answer

afaik the best way is to do a json view class and then use RequestHandler to check for ajax and switch to the json view class..

from the jquery side is just $.ajax() iirc or $('.selector').load();

Answered by dogmatic69on 8/2/10

lmgtfy.com

dogmatic69 - on 8/2/10

<< comments | 1 | 2
<< previous next >>

Your Answer

You can use Creole Wiki Syntax to format your text.

Tagged with

Rating

0

Viewed

512 times

Last Activity

on 8/2/10