How do I make a ajax call that will work with multiple urls?
I used jQuery ajax .load but the problem is the nextLink variable will not be updated since it is already loaded in the js file.
var url = "http://ift.tt/1EZWtsU"
var pageNum = 1;
var nextLink =url+pageNum;
$('.content-'+ pageNum).load(nextLink + ' .each-block',
function() {
pageNum++;
}
);
Aucun commentaire:
Enregistrer un commentaire