TeddyKiller Posted March 31, 2010 Share Posted March 31, 2010 var refreshId = setInterval(function() { $('#compass').load('#compass'); }, 1000); Jquery refresh. I want to refresh a div container every second. Instead, this refreshes the whole page? Any help. thanks Link to comment https://forums.phpfreaks.com/topic/197130-this-refreshes-the-whole-page-for-some-reason/ Share on other sites More sharing options...
nafetski Posted April 1, 2010 Share Posted April 1, 2010 Few things... $.load is not a refresh...it's an Ajax request. Second...you need to give it a URL to load the data from...not another element Link to comment https://forums.phpfreaks.com/topic/197130-this-refreshes-the-whole-page-for-some-reason/#findComment-1035018 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.