This problem solved
Okay I have another question.
In my code, using the "ajax" call I load an html div into my page, define its top and left and then make it visible using ".fadeIn()" (".show()" does the same thing). The element is positioned fixed and I want it (no matter where I am scrolled on the page) to show up the distance from the top and left that I specify. Instead it scrolls me to the top of the page before showing the element. How can I stop this scrolling and have it just show where I am scrolled on the page?
Code:
//".floating_box" refers to the div in the html
$.post(html_url, function(data){
$('body:last-child').append(data);
add_functionality();
});
$('.floating_box').css({'top' : '40px', 'left' : '400px'});
$('.floating_box').fadeIn('fast');