Datatables pipeline feature - I need to store all past request data..
Datatables pipeline feature - I need to store all past request data..
soni_devang
Posts: 2Questions: 0Answers: 0
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
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
This discussion has been closed.
Replies
Can you provide me answer ??
Regards,
Devang
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