Remove Jquery AutoComplete Cache -
var collectionforautocomplete = new array(); function autocompletetextbox() { var data = collectionforautocomplete; //var ac = $("#setcommonelement_elementname").autocomplete(data); //ac.disable(); // ac.setoptions({ nocache: true }); $("#setcommonelement_elementname").autocomplete(data, { minchars: 0, width: 262, matchcontains: "word", scrollheight: 220, cachelength: 0 }); } function generatestringforautocomplete(commonelementcollectionlist) { if (commonelementcollectionlist.length > 0) { collectionforautocomplete.length = 0; (i = 0; < commonelementcollectionlist.length; i++) { collectionforautocomplete.push(commonelementcollectionlist[i].elementname); } } }
in run time have loaded collection , push collection jquery autocomplet. cache not empty. please tell me how can clear cache...........
try this:
$("#setcommonelement_elementname").result(function() { $("#setcommonelement_elementname").flushcache(); });
Comments
Post a Comment