Version

Connection.isOnline

This method is used to determine the connection mode and is closely related to the go online/offline button.

Syntax

SPlus.Connection.isOnline (function (online){
        //TODO: Implement what to do when SharePlus is online or not
});

onSuccess callback function

Parameter

Description

function (online)

Success callback function to be implemented, which receives a Boolean value (True or False) depending on the connection mode.