Really simple AJAX .load with slideDown
I'm trying to do a really simple AJAX function with a basic load screen and what I have works well...
-
function ajaxLoad(url,containerid,loadmsg)
{
$("#"+containerid).html("<div id=\"loader\">"+loadmsg+"</div>");
$("#"+containerid).load(url);
}
I would LIKE to have it slideDown once the content is loaded, just so the container doesn't "jump" to a new height. Any ideas how I can make this work?
Pushing here, I know, but it would also be nice to have it slideUp to the size of the loading message, but now I'm just being greedy.