Datatables pipeline feature - I need to store all past request data..

Datatables pipeline feature - I need to store all past request data..

soni_devangsoni_devang Posts: 2Questions: 0Answers: 0
edited December 2013 in General
In current pipeline feature, Actually we can catch some pages at a time..
for example, 4 pages... so first request will fetch 1 to 4 pages.. then on 5th page click, it will send another request to the server..
but now when i clicks on 4th page back, then also it goes to the server... I don't want this...
if i clicks on 4th page then it should load data from the cache... any idea to implement this??

I have below code :--
[code]
/* Datatables caching -- Start */
var oCache = {
iCacheLower: -1
};

function fnSetKey( aoData, sKey, mValue ){
for ( var i=0, iLen=aoData.length ; i

Replies

  • soni_devangsoni_devang Posts: 2Questions: 0Answers: 0
    hi Allan,

    Can you provide me answer ??

    Regards,
    Devang
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi,

    I'd suggest you store each request in an object, with the unique data uses as an index. I don't think it will be hugely efficient, or very elegant, but it would probably work. I'm afraid I can't write the code for this, it would probably take me a couple of hours.

    Allan
This discussion has been closed.