AirNav RadarBox
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 


Author Topic: some usefull HTML for your website  (Read 7958 times)

0 Members and 1 Guest are viewing this topic.

G0HWC

  • New Member
  • *
  • Posts: 45
  • AirNav Ham-Radio Icom-7700, Icom-7100 Icom-5100
    • Ham Radio, SSTV, AirNav, Echolink, D-star
some usefull HTML for your website
« on: January 26, 2010, 11:07:41 PM »
Hi all,
my page that displays my image uploaded from my AirNav had a refresh
of 60 secs  http://g0hwc.com/airnav.html
This was fine but it was refreshing the whole page and I just wanted
to update the RadarBoxScreenShot.gif image.
I am now using this script.

<img src="airnav/RadarBoxScreenShot.gif" width="960" height="844" border="1" name="refresh">
  <script language="JavaScript" type="text/javascript">
      <!--
      var t = 30 // interval in seconds
      image = "airnav/RadarBoxScreenShot.gif" //name of the image
      function Start() {
      tmp = new Date();
      tmp = "?"+tmp.getTime()
      document.images["refresh"].src = image+tmp
      setTimeout("Start()", t*1000)
      }
      Start();
      // -->
      </SCRIPT>

Now only the image is refreshed and not the whole page.
May be handy to some of you.

Paul
My AirNav Live HERE:
http://www.g0hwc.com/airnav.html

Want to join the "Aiir Navigation Webring" ?
Infomation HERE
http://www.g0hwc.com/airnav_webring.html

Join me as I drive around UK in my truck with Live images
http://www.truckcam.tv

RodBearden

  • Hero Member
  • *****
  • Posts: 9186
    • Rod's RadarBox Downloads
Re: some usefull HTML for your website
« Reply #1 on: March 11, 2010, 01:00:48 AM »
Paul - many thanks for this script - it works a treat.

Rod
Rod

abrad41

  • Guest
Re: some usefull HTML for your website
« Reply #2 on: March 11, 2010, 09:49:41 AM »
Paul - Cannot get your links to open.

Andy

peteeds

  • New Member
  • *
  • Posts: 36
  • RADIO AMATEUR (2W1FJZ - MW3PET )
Re: some usefull HTML for your website
« Reply #3 on: March 11, 2010, 11:25:34 AM »
Abrad 41,  Paul's site is closed down for the next few hours, he is carrying out some maor upgrades & site maintennance works, knowing Paul he will get back to you as soon as he is up & running again.
Hope this helps.
Cheers de Peter 2W1FJZ

abrad41

  • Guest
Re: some usefull HTML for your website
« Reply #4 on: March 11, 2010, 08:12:41 PM »
Thank you Peter

G0HWC

  • New Member
  • *
  • Posts: 45
  • AirNav Ham-Radio Icom-7700, Icom-7100 Icom-5100
    • Ham Radio, SSTV, AirNav, Echolink, D-star
Re: some usefull HTML for your website
« Reply #5 on: March 13, 2010, 12:16:23 AM »
all sites back up again

Paul
My AirNav Live HERE:
http://www.g0hwc.com/airnav.html

Want to join the "Aiir Navigation Webring" ?
Infomation HERE
http://www.g0hwc.com/airnav_webring.html

Join me as I drive around UK in my truck with Live images
http://www.truckcam.tv

RodBearden

  • Hero Member
  • *****
  • Posts: 9186
    • Rod's RadarBox Downloads
Re: some usefull HTML for your website
« Reply #6 on: March 14, 2010, 12:00:43 AM »
As a non-programmer, I have a request for those of you who understand these things.

Now that I've incorporated the code to refresh the RadarBox screenshot image on my webpage, could somebody whip up some code to display one picture when I'm online, and another picture when the image is, for example, more than two minutes old?

That way I could show the screenshot when I'm online, but a "Currently offline" image when I'm not.

It sounds quite an easy job to me, but, as I say, I know nothing :-)

Rod
Rod

Bell 407

  • Full Member
  • ***
  • Posts: 124
Re: some usefull HTML for your website
« Reply #7 on: April 07, 2010, 02:02:39 PM »
Hey G0HWC,

Thanks for this brilliant piece of coding - probably the best little snippet of code I have used in a while.

Makes the update of images so much better than refreshing the whole page.

Thank you.

Cheers,

G0HWC

  • New Member
  • *
  • Posts: 45
  • AirNav Ham-Radio Icom-7700, Icom-7100 Icom-5100
    • Ham Radio, SSTV, AirNav, Echolink, D-star
Re: some usefull HTML for your website
« Reply #8 on: April 09, 2010, 09:23:29 PM »
Hey G0HWC,

Thanks for this brilliant piece of coding - probably the best little snippet of code I have used in a while.

Makes the update of images so much better than refreshing the whole page.

Thank you.

Cheers,

Im glad its of some use to you

Paul
My AirNav Live HERE:
http://www.g0hwc.com/airnav.html

Want to join the "Aiir Navigation Webring" ?
Infomation HERE
http://www.g0hwc.com/airnav_webring.html

Join me as I drive around UK in my truck with Live images
http://www.truckcam.tv

RodBearden

  • Hero Member
  • *****
  • Posts: 9186
    • Rod's RadarBox Downloads
Re: some usefull HTML for your website
« Reply #9 on: April 09, 2010, 09:33:49 PM »
Paul - I'm using it too - many thanks for it.

Has anyone got a solution to the question I asked in reply #6?

Rod
Rod

G0HWC

  • New Member
  • *
  • Posts: 45
  • AirNav Ham-Radio Icom-7700, Icom-7100 Icom-5100
    • Ham Radio, SSTV, AirNav, Echolink, D-star
Re: some usefull HTML for your website
« Reply #10 on: April 10, 2010, 12:22:08 PM »
Paul - I'm using it too - many thanks for it.

Has anyone got a solution to the question I asked in reply #6?

Rod

Hi Rod,
I dont know a easy way to do this, On my Truckcam site
When I finish work for the day and no more images of the view
from my truck will be uploaded I just use a simple FTP program
to send a "Truckcam" off line image. This is easy as I only need
to do this at the end of every working day..

Paul
« Last Edit: April 10, 2010, 12:24:54 PM by G0HWC »
My AirNav Live HERE:
http://www.g0hwc.com/airnav.html

Want to join the "Aiir Navigation Webring" ?
Infomation HERE
http://www.g0hwc.com/airnav_webring.html

Join me as I drive around UK in my truck with Live images
http://www.truckcam.tv