i'm trying to load data into an element using jQuery.get. After loading is completed, an div should be updated with that content in order to slideDown the content.
For an example please take a look at this fiddle: http://jsfiddle.net/7BKXq/1/ ..where you can find the following conde:
function loadAndOpen(parent)
{
var o_parent=$(parent);
var url="jttp://myurl";
o_parent.append('<div id="content">...loading...</div>');
jQuery.get(url,function(data)
{
o_parent.find('#content')
.html(data)
.hide()
.slideDown('8000');
}
) ;
}
The Problem is, that slideDown displays the element after loading the content, but not sliding it smoothly.
Probably there is an wrong useage of the .slideDown method?
Thank you!