Dermine if your Client is Offline/Online and Speed (XML/HTML)

Category:
ASP, HTML and XML
Type:
Snippets
Difficulty:
Beginning
Author:
Don Kennedy

Version Compatibility: Visual Basic Script

More information:
This Little GEM will let you know if the Client PC is Offline/Online and if online what Speed ("Dial-up" or Faster")

Imagine if you page HTML pages which are downloaded to client PC's you can now say "Must Be Online to use this..." or better yet you could use local files which you downloaded with your app or page an reference them insetad of a Internet location.

The current example only displays an alert box when the client PC is OFFLINE, you can add your logic such as if the Client PC is OFFLINE then use local file on their PC or actually re-direct Dial-up Users to pages which are less resource intensive.

This code is curerntlyu for HTML/JavaScript however as you can see, it could easily be ported to VBScript or VB as well.

Enjoy

Don Kennedy Webmaster@Programming-Services.com

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: