Hello.
My name is Mark. I am working on a site at the moment that involves the use of the scrollTo plugin by
Ariel Flesler. The plugin is great and I am having fun with it but there has been a development area that I seem to be having trouble with. I am loading a page via ajax like so;
I am then calling the scrollTo function after the setInterval within the ajax request but... I am having trouble making this look anything like it should do. The idea came from a site like this;
www.imagemechanics.com.au
Is this something that will work hand in hand with the scrollTo function? If not is there another way I can do this sort of thing with the setInterval and scrollTo plugin?
Any help would be greatly appreciated for this.
Regards
Mark
- $(document).ready(function(){
$('.log').ajaxStart(function() {
$(this).text('Triggered ajaxStart handler.');
});
$('#scrollerbutton').click(function() {
var refreshId = setInterval(function(){
var r = (-0.5)+(Math.random()*(1000.99));
$('.result').load('terms.html#clients_div');
}, 5000);
});
});