How to retain data after ajax call.. I am getting data through ajax call but if go to next page the previous page is not available for me


#1

AJAX CODE

function callcategories(){
var $show= $(’#banner’);
app.request({
crossOrigin: true,
type: “POST”,
url: “http://www.myreminde.com/getimage.php”,
data:{},
dataType: ‘json’,
async:true,
crossDomain:true,
cache: false,
success:function( data ) {
$.each(data,function(i,req){
$show.append(’

’+req.categoryName+ ‘
’);
$show.append(’’);
var scr= “category/’+req.categoryName+’”/"’+req.categoryImage+’";
console.log(scr);
});}});
}

I am getting data but if i move to next page again came to this page all data vanished… Looking for a solution… Thanks in avance