Language: English Programming Language: JavaScript Published by: tandemtal [not registered] Last Update: 5/15/2006 Views: 518
Many of us would like to have Scripts or html pages which could be run OFFLINE on the clients PC when they are NOT connected to the internet. This is an example of how to check using some very SIMPLE HTML and JavaScript. Example you may have Gifs which you could reference in a default home page which could now be accessed offline via a directory on the clients system. Very Many possibilites with this. Please Rate this if you can and check out my other submissions here.Inputs:None//// Returns:This example just uses an ALERT BOX when the Browser is offline. you // can replace that with any logic you wish// , or just inform the person that they mu// st be online to use your Page or Script.// //// Assumes:Not only does this tell you i// f the Client PC is ONLINE or OFFLINE it // also tells you if the Client PC is Dial-// up or High-Speed. This means you could a// lso use this to determine Download optio// ns if your visitor is accessing your sit// e via a Slow speed dial-up line you coul// d re-direct to pages with less images ju// st for them so that pages would load fas// ter for dial-up visitors. Neat huh.No alert was added for this check however you can see that could be done very easily ;-)//// Side Effects:Joy to those of use whom// needed a way to take a diffenert path su// ch as getting Gifs, scripts from a direc// tory on the users hard drive when the us// er wishes to use our tools or applicatio// ns offline and the HTML is pointing to a// WEB Site for scripts of images.//This is a GREAT site to share ideas, code, and suggestions. Any Questions please email me at: Webmaster@Programming-Services.com Thanks Don Kennedy
Name *
Email (won't be displayed) *
Website
Comment *
Security Code *