Functiondojox.off.onNetwork

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

If we move online, then this method is called with the value "online". If we move offline, then this method is called with the value "offline". You can connect to this method to do add your own behavior:

dojo.connect(dojox.off, "onNetwork", someFunc)

Note that if you are using the default Dojo Offline UI widget that most of the on- and off-line notification and syncing is automatically handled and provided to the user.

Usage

function (/*String*/ type) (view source)
parametertypedescription
typeStringEither "online" or "offline".