dreamwest Posted May 26, 2009 Share Posted May 26, 2009 Can someone give me an exapmle of how to have an image loading while a div is loading the content using ajax <div id=loading>Loading.......</div> //this will only show while the div is loading Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 26, 2009 Share Posted May 26, 2009 Like - <div id="loading"><img src="loader.gif" /></div> ? I doubt that's what you meant. Could you please be more specific? Thanks! Quote Link to comment Share on other sites More sharing options...
corbin Posted May 26, 2009 Share Posted May 26, 2009 Before firing off the AJAX call, change the content of the div to the image. In the AJAX call's callback method, have the content of the div changed. Might want to preload the image. 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.