jquery $.GET loading order
Posted
by
welovedesign
on Stack Overflow
See other posts from Stack Overflow
or by welovedesign
Published on 2012-09-03T15:12:04Z
Indexed on
2012/09/03
15:38 UTC
Read the original article
Hit count: 221
I am loading all external pages in jquery for a slider. The problem is it loads in a different order. What I need to do is sequence the loading of pages
$.get("page1.php", function( my_var ) {
$('#slider').append($('.content', my_var));
});
$.get("page2.php", function( my_var ) {
$('#slider').append($('.content', my_var));
});
$.get("page3.php", function( my_var ) {
$('#slider').append($('.content', my_var));
});
sometimes page3 loads before page2.
© Stack Overflow or respective owner