HighDots Forums  

Detecting LAN, please help

Javascript JavaScript language (comp.lang.javascript)


Discuss Detecting LAN, please help in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sooby Bhattacharjee, SDSU
 
Posts: n/a

Default Detecting LAN, please help - 11-12-2003 , 10:40 PM






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)

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.