0
Paging my site is working on everything, pc and android browsers, but on iphone or ipad, it is not working. Is there a solution I should do to improve all this on iOS? I’m using ajax with php. My script is simple:
$(document).ready(function(){
load_data();
function load_data(page)
{
$.ajax({
url:"pagination",
method:"POST",
data:{page:page},
success:function(data){
$('#pagination_data').html(data);
}
})
}
$(document).on('click', '.pagination_link', function(){
var page = $(this).attr("id");
load_data(page);
});
});
See Debug for any errors: http://html5-mobile.de/blog/ios6-remotedebugging-web-inspector
– Inkeliz
You probably have to use . done() promisse instead of Success. Try this: $. ajax(' url:"pagination", method:"POST", data:{page:page} }) . done(Function(date)' $('#pagination_data'). html(date); })
– Johnny John