Version

Utility.URL.isAvailable

This method is used to determine if a URL is available or not. If there is no available connection, the URL will never be available as well.

Syntax

SPlus.Utility.URL.isAvailable (url, function (available){
        //TODO: Implement what to do when the URL is available or not
}, function (errorResponse){
        var error = errorResponse['error#displayValue']; //Getting the error
        //TODO: Implement how to handle errors
}, function (cancelResponse){
        //TODO: Implement how to handle a user’s cancel
});

Utility.URL.isAvailable Parameters

Parameter

Type

Description

url

String

URL to be checked for availability.

onSuccess callback function

Parameter

Description

function (available)

Success callback function to be implemented, which receives a Boolean value (True or False= depending on the URL availability.

onError callback function

Parameter

Description

function (eResponse)

Error callback function to be implemented, which receives the eResponse JavaScript Object.

onCancel callback function

Parameter

Description

function (result)

Cancel callback function to be implemented.

Sample

For a sample with this API method, refer to the Integrating SharePlus APIs to your Mobile Workspace procedure.