[Javascript] Refresh an image, change an image

Tim Makins spindrift at oceanfree.net
Sun Jun 13 15:06:00 CDT 2004


I still haven't gone through all the replies yet - one h*ll of a hectic
weekend - will do that tomorrow, but thought you might like to look at what
I am talking about...

Please visit my ham radio site http://www.mapability.com/ei8ic/ and click on
APRS Maps > Dublin APRS stations. This shows an overlay map where you can
turn various background layers on and off with javascript and thus choose
(a)how much detail in the map you want to see and (b)what order you see it
in. The little text labels that appear straight away are collected from a
server in the US - basically, I send him a blank transparent png and his
server returns it with the labels and icons added to it. I then overlay this
on top of everything else.

So, the refresh-thing, is that I would like to refresh just the blank png,
without all the other overlays and buttons and stuff.

The change-image thing: I can get his server to overlay different types of
stuff on my blank png simply by changing the request line. **But** I would
have to get it to appear in the same div as before, so that it stays above
everything else.

Clear as mud ??

Tim in Ireland.

PS if you are looking at my code, not all the functions are in use on that
page - it still needs tidying.

----- Original Message ----- 
From: "Tim Makins" <spindrift at oceanfree.net>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Thursday, June 10, 2004 5:02 PM
Subject: [Javascript] Refresh an image, change an image


> 1st question:
>
>
> <meta HTTP-EQUIV="Refresh" content="240">
>
> I am familiar with the above instruction that will refresh my page's
entire
> contents every 240 seconds.
>
> but what I am wondering is this: Is it possible to refresh JUST one image
on
> the page, such as the one below...
>
> <div id="live_image">
> <img src="http://www.company.com/images/live_image.gif" width="741"
> height="631" alt="" name="itsalive">
> </div>
>
>
> My reason for asking is that the page has quite a few other images, but
none
> of them need refreshing. Loading them all again would slow things down,
and
> is really un-necessary.
>
> ******************************************
> 2nd question
>
> Assuming I want to change the above image on the page for a new one on my
> server, (not previously downloaded), such as
> http://www.company.com/images/live_image2.gif what would be the code for a
> form-button that would do that ?
>
>
> Note that pre-loading both images isn't an option as they are generated on
> the server.
>
> Tim in Ireland.
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>




More information about the Javascript mailing list