How to cache YUI DataSource?

Posted by Matt McCormick on Stack Overflow See other posts from Stack Overflow or by Matt McCormick
Published on 2010-05-28T20:36:01Z Indexed on 2010/05/28 21:52 UTC
Read the original article Hit count: 306

Filed under:
|
|
|

I'm setting up a YUI DataTable with filtering by following the steps on the YUI site

However, I am using JSON as the DataSource ResponseType. When I type in a value to filter, the request will be sent to the server again. I find this to be wasteful as all the data has already been retrieved the first time.

Is there a way to cache the initial data returned and then filter only according to that data so another AJAX request does not have to be made?

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about yui