|
Citizen1200
| Joined: 07 Jul 2004 |
| Posts: 54 |
| Location: San Diego |
|
 |
Posted: Fri Apr 29, 2005 6:06 pm |
|
 |
 |
 |
 |
I don't know much about Javascript, and I'm wondering if it's possible to detect whether or not a user has a connection to the internet using JS? The application is for a CD-ROM, where the links would be do documents contained on the CD if the user has no internet connection, and if the user *does* have a connection, then the links would download current documents from our company website.
thanks for any ideas.
|
|
|
|
loftboy
Forum Regular
|
 |
Posted: Sun May 01, 2005 8:19 am |
|
 |
 |
 |
 |
I dont think you can, too many things potentially ready, willing and able to block a connection anyways, you can always just send out the request and hope for the best.
|
|
|
|
plu
| Joined: 03 May 2005 |
| Posts: 27 |
| Location: Philadelphia |
|
 |
Posted: Tue May 10, 2005 3:19 am |
|
 |
 |
 |
 |
This can't be acomplished if there is no server side scripting. Since Javascript can only be run on client machine, it can't detect connection if it does not attempt to make connection by sending out request.
|
|
|
|
Connie
| Joined: 26 Mar 2005 |
| Posts: 176 |
| Location: The Internet |
|
 |
Posted: Thu May 12, 2005 2:40 am |
|
 |
 |
 |
 |
Make a page that ask if they are online? I know, not the best way to do it, but it keeps things simple...
|
|
|