Problem with .load
Problem with .load
Hello to everybody,
I'm writing here because I've this problem. I'm a function and inside I want to load 2 files using the .load function. The problem is that I could put only one .load, because if I insert 2 .load, the function doesn't work anymore.
This is the piece of code:
$(document).bind("active.idleTimer", function(){
$(".newsticker").load("ajax/state.php");
$("#friend_list").load("ajax/state2.php");
});
What can I do to solve this problem?
Thank you to everybody that will help me.