place div based on the scrollposition
<p>I got a floating header div that follows my scroll position. my problem is when im lets say half way down the site and do a jquery post and that post it returns a partial view of the floating header div, that gone place it in its original position wich is at the top of the site. i want to bring it back based on my scroll position (scrollTop?).</p>

<p>i tried some different ideas i had but did not succed with it so i thought i would post the question here.</p>

<p>this is what i tried and got now.</p>

<p>my floating div is called <code>#float-header</code></p>

<pre><code>$('#float-header').animate({ scrollTop: 430 //static value just for testing });

$('#float-header').scrollTop($('html, body').scrollTop());

$('#float-header').top($('html, body').scrollTop());
</code></pre>

<p>any ideas?</p>
