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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.