Jump to content

Another Progress Indicator Question


eDave

Recommended Posts

I am developing some code which is taking some user input, interrogating eBay via xml and then displaying
the 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 header
image on
send xml to ebay
process results
image off
show results
page end

I know that images can be altered using Javascript, but have been unable to find anything suitable.

Or maybe you have another solution, thanks
Link to comment
Share on other sites

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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.