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