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

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

view: {
   stackPages: true
 },

In your app.js framework7 initialization