Detecting LAN, please help

  • Thread starter Sooby Bhattacharjee, SDSU
  • Start date
S

Sooby Bhattacharjee, SDSU

Hello,

I have a html document that is browsed as a local file in a PC. The
document displays an image stored in the local disk. What I really
want is for the document to fetch an image from a remote URL if the PC
is connected to a local area network. If not, the local image should
be displayed. I have two questions in this regard.

1. Could you help me write a javascript that can figure out if LAN is
available and depending on that display the correct image (from remote
URL or local URL)?

2. When a remote image is being loaded, can the process be aborted
after a fixed amount of time and the local image displayed? If so,
how?

Thanks in advance.

Sooby
(thermo.sdsu.edu)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,150
Latest member
MakersCBDReviews
Top