This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathbrowserLoadRequest.lcdoc
More file actions
63 lines (45 loc) · 1.48 KB
/
browserLoadRequest.lcdoc
File metadata and controls
63 lines (45 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Name: browserLoadRequest
Type: message
Syntax: browserLoadRequest <pUrl>, <pType>
Summary:
Sent when a URL has been requested.
Introduced: 4.5.3
OS: ios
Platforms: mobile
Example:
on browserLoadRequest pURL, pType
answer "Do you want to load:" && pURL with "Yes" and "No"
if it is "Yes" then
pass browserLoadRequest
else
put "Refused:" && pURL into field "Status"
end if
end browserLoadRequest
Parameters:
pUrl:
The URL that has started to load.
pType (enum): The reason for the request.
- "click"
- "submit"
- "navigate"
- "reload"
- "resubmit"
- "other"
Description:
Handle the <browserLoadRequest> message to perform an action when a URL
has been requested.
The <browserLoadRequest> message is sent to the object containing the
script that created the mobile browser control after a url has been
requested.
Not passing the message causes the load request to not go ahead.
The browserLoadRequest is only sent if <delayRequests(command)> has been
set to true.
>*Note:* Delaying requests can cause web pages that load pages into
> sub-documents to not work correctly.
>*Note:* The <browserLoadRequest> message is sent in response to the
> webView:shouldStartLoadWithRequest: delegate method.
References: mobileControlCreate (command), mobileControlDelete (command),
mobileControlSet (command), mobileControlGet (function),
mobileControlTarget (function), mobileControls (function),
browserStartedLoading (message), browserLoadFailed (message),
browserFinishedLoading (message)