FadeIn and FadeOut effect weird
<p>I am using JQuery and what I want to happen is: div fades out using <code>fadeOut()</code>. It then loads content from a url using the <code>load()</code>. Then once content loaded it fades back in using <code>fadeIn()</code>. However it does not work,it flashes then loads out then loads in. I think the problem is that the fading is happening before the load is complete.I saw that someone else had the same problem but when i applied their solution there was no change.Here is the code with the solution i found (not working of course).    </p>

<pre><code>jQuery('.stil_link_img a').click(function() {
    var x  = jQuery(this).attr('href') + ' #continut_eco';
    jQuery('#continutul_paginii').fadeOut("slow").load(x,function() {
        jQuery(this).fadeIn("slow")
    });
    return false      
});
</code></pre>
