eDave Posted May 25, 2006 Share Posted May 25, 2006 I am developing some code which is taking some user input, interrogating eBay via xml and then displayingthe results.But it is taking a while to run and I would like to put something on screen to reassure the user that something is happening.I think it would be possible to use css to show an animated gif in the middle of the screen and when the script results are ready to display remove the gif again.ie page headerimage onsend xml to ebayprocess resultsimage offshow resultspage endI know that images can be altered using Javascript, but have been unable to find anything suitable.Or maybe you have another solution, thanks Quote Link to comment https://forums.phpfreaks.com/topic/10458-another-progress-indicator-question/ Share on other sites More sharing options...
appeland Posted May 25, 2006 Share Posted May 25, 2006 one idea:put an image somewhere somewhere, give it and id, like this:<IMG src="loading.gif" name="loading" id="loading">and at the end of your page/script put this:<script type="text/javascript">document.images['loading'].src = 'empty.gif';</SCRIPT> that'll replace your loading image with a transparent or background colored one.Not the coolest thing, but works :)Rgds,andi Quote Link to comment https://forums.phpfreaks.com/topic/10458-another-progress-indicator-question/#findComment-39050 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.