adamlacombe Posted March 25, 2011 Share Posted March 25, 2011 I have this code here: <script type="text/javascript"> var auto_refresh = setInterval( function () { $('#load_news').load('ajax/news.php').fadeIn("slow"); }, 10000); // refresh every 10000 milliseconds </script> and every time it refreshes the file it shoots me back to the top of the page. is there a way to stop this from happening? Thanks in advanced, Adam Link to comment https://forums.phpfreaks.com/topic/231725-sending-page-back-to-top/ Share on other sites More sharing options...
adamlacombe Posted March 26, 2011 Author Share Posted March 26, 2011 huh, I googled for hours and I can't find out if I can make it stop shooting me back to the top. I guess all the refresh file ajax scripts do it.. weird... any ideas of stopping it would be great though, thanks Link to comment https://forums.phpfreaks.com/topic/231725-sending-page-back-to-top/#findComment-1192573 Share on other sites More sharing options...
adamlacombe Posted March 26, 2011 Author Share Posted March 26, 2011 does anyone even answer in this board? Know of another place I could ask besides yahoo answers? Link to comment https://forums.phpfreaks.com/topic/231725-sending-page-back-to-top/#findComment-1192636 Share on other sites More sharing options...
adamlacombe Posted March 28, 2011 Author Share Posted March 28, 2011 bump Link to comment https://forums.phpfreaks.com/topic/231725-sending-page-back-to-top/#findComment-1193398 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.