Constructordojox.off._isSiteAvailable

dojo.require("dojox.off._common");
defined in dojox/off/_common.js

This method will asychronously determine if our web application's web site is available, which is a good proxy for network availability. The URL dojox.off.availabilityURL is used, which defaults to this site's domain name (ex: foobar.com). We check for dojox.off.AVAILABILITY_TIMEOUT (in seconds) and abort after that

Usage

function (/*Function*/ callback) (view source)
parametertypedescription
callbackFunctionAn optional callback function that will receive one argument: whether the site is available or not and is boolean. If this function is not present we call dojox.off.onNetwork instead if we are able to go online.

PropertiesBack to top