browserLoadRequested

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
browserLoadRequested <pUrl>, <pType>
Summary

Sent when a URL has been requested.

Introduced5.0.1
OSios
Platformsmobile
Parameters
NameTypeDescription
pUrl

The URL that has started to load.

pType

The reason for the request. - "click" - "submit" - "navigate" - "reload" - "resubmit" - "other"

Example
on browserLoadRequested pURL, pType
   put "URL" && pURL && "requested" into field "status bar"
end browserLoadRequested
RelatedCommand: mobileControlCreate, mobileControlDelete, mobileControlSet
Function: mobileControlGet, mobileControlTarget, mobileControls
Message: browserStartedLoading, browserFinishedLoading, browserLoadRequest, browserLoadFailed
Description

Handle the browserLoadRequested message to perform an action when a URL has been requested.

The browserLoadRequested message is sent to the object containing the script that created the mobile browser control after a url has been requested and passed for loading.

If delayRequests(command) has been set to false, browserLoadRequested is sent as soon as the URL is requested.

If delayRequests(command) is set to true, browserLoadRequested is only sent if the corresponding browserLoadRequest message has been passed.

Note: The browserLoadRequested message is sent in response to the webView:shouldStartLoadWithRequest: delegate method.