You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/widgets/browser/browser.lcb
+40-40Lines changed: 40 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -24,14 +24,14 @@ Licensed under the terms of the Creative Commons Attribution 3.0 Unported Licens
24
24
/*
25
25
This widget displays web content within a native web browser view.
26
26
27
-
Name: url
27
+
Name: URL
28
28
Type: property
29
29
30
30
Syntax:
31
-
set the url of <widget> to <pUrl>
32
-
get the url of <widget>
31
+
set the URL of <widget> to <pUrl>
32
+
get the URL of <widget>
33
33
34
-
Summary: The url displayed by the browser.
34
+
Summary: The URL displayed by the browser.
35
35
36
36
Parameters:
37
37
pUrl(string): A string specifying a URL.
@@ -40,19 +40,19 @@ Example:
40
40
// Navigate to livecode.com by setting the url property, keeping a copy of the
41
41
// previous URL
42
42
local tOldUrl
43
-
put the url of widget "myBrowser" into tOldUrl
44
-
set the url of widget "myBrowser" to "http://livecode.com"
43
+
put the URL of widget "myBrowser" into tOldUrl
44
+
set the URL of widget "myBrowser" to "http://livecode.com"
45
45
46
46
Description:
47
-
The <url> is the URL of the content be displayed in the browser.
47
+
The <URL> is the URL of the content be displayed in the browser.
48
48
49
49
50
-
Name: htmltext
50
+
Name: htmlText
51
51
Type: property
52
52
53
53
Syntax:
54
-
set the htmltext of <widget> to <pHtmlText>
55
-
get the htmltext of <widget>
54
+
set the htmlText of <widget> to <pHtmlText>
55
+
get the htmlText of <widget>
56
56
57
57
Summary: The HTML text of the content displayed by the browser.
58
58
@@ -63,18 +63,18 @@ Example:
63
63
// Render a web page in the browser by specifying custom HTML content
64
64
local tHTML
65
65
put "<html><head><title>My Page Title</title></head><body>My Page Contents</body></html>" into tHTML
66
-
set the htmltext of widget "myBrowser" to tHTML
66
+
set the htmlText of widget "myBrowser" to tHTML
67
67
68
68
Description:
69
-
The <htmltext> is the HTML representation of the content displayed in the browser.
69
+
The <htmlText> is the HTML representation of the content displayed in the browser.
70
70
71
71
72
-
Name: vscrollbar
72
+
Name: vScrollbar
73
73
Type: property
74
74
75
75
Syntax:
76
-
set the vscrollbar of <widget> to <pEnabled>
77
-
get the vscrollbar of <widget>
76
+
set the vScrollbar of <widget> to <pEnabled>
77
+
get the vScrollbar of <widget>
78
78
79
79
Summary: Controls whether the vertical scrollbar is visible and enabled within the browser.
80
80
@@ -85,12 +85,12 @@ Description:
85
85
Controls whether the vertical scrollbar is visible and enabled within the browser.
86
86
87
87
88
-
Name: hscrollbar
88
+
Name: hScrollbar
89
89
Type: property
90
90
91
91
Syntax:
92
-
set the hscrollbar of <widget> to <pEnabled>
93
-
get the hscrollbar of <widget>
92
+
set the hScrollbar of <widget> to <pEnabled>
93
+
get the hScrollbar of <widget>
94
94
95
95
Summary: Controls whether the horizontal scrollbar is visible and enabled within the browser.
96
96
@@ -101,12 +101,12 @@ Description:
101
101
Controls whether the horizontal scrollbar is visible and enabled within the browser.
102
102
103
103
104
-
Name: useragent
104
+
Name: userAgent
105
105
Type: property
106
106
107
107
Syntax:
108
-
set the useragent of <widget> to <pUserAgent>
109
-
get the useragent of <widget>
108
+
set the userAgent of <widget> to <pUserAgent>
109
+
get the userAgent of <widget>
110
110
111
111
Summary: The identifier sent by the browser when fetching content from remote URLs.
112
112
@@ -115,19 +115,19 @@ pUserAgent(string): A string conforming to the http specifications at http://www
115
115
116
116
Example:
117
117
// Set custom User-Agent header. The remote web server may be configured to deliver custom content for browsers using this User-Agent.
118
-
set the useragent of widget "myBrowser" to "myAppEmbeddedBrowser"
118
+
set the userAgent of widget "myBrowser" to "myAppEmbeddedBrowser"
119
119
launch url "http://myexampleserver.com/content.html" in widget "myBrowser"
120
120
121
121
Description:
122
-
The <useragent> is the identifier sent by the browser when fetching content from remote URLs.
122
+
The <userAgent> is the identifier sent by the browser when fetching content from remote URLs.
123
123
124
124
125
-
Name: javascripthandlers
125
+
Name: javascriptHandlers
126
126
Type: property
127
127
128
128
Syntax:
129
-
set the javascripthandlers of <widget> to <pHanderList>
130
-
get the javascripthandlers of <widget>
129
+
set the javascriptHandlers of <widget> to <pHanderList>
130
+
get the javascriptHandlers of <widget>
131
131
132
132
Summary: A list of LiveCode handlers that are made available to JavaScript calls within the browser.
133
133
@@ -144,17 +144,17 @@ Example:
144
144
...
145
145
146
146
// Set up the browser javascript handler list
147
-
set the javascripthandlers to "myJSHandler" & return & "myOtherJSHandler"
147
+
set the javascriptHandlers to "myJSHandler" & return & "myOtherJSHandler"
148
148
149
149
...
150
150
151
151
// Calling the handler from JavaScript within the browser:
152
152
liveCode.myJSHandler("myMessage", 12345);
153
153
154
154
Description:
155
-
The <javascripthandlers> is a list of LiveCode handlers that are made available to JavaScript calls within the browser. The handlers will appear as methods attached to a global "liveCode" object. You can call these methods as you would any other JavaScript function and pass whatever parameters you require.
155
+
The <javascriptHandlers> is a list of LiveCode handlers that are made available to JavaScript calls within the browser. The handlers will appear as methods attached to a global "liveCode" object. You can call these methods as you would any other JavaScript function and pass whatever parameters you require.
156
156
157
-
>*Warning:* Setting the javascriptHandlers property gives JavaScript running within the Web browser permission to execute parts of your application through the handlers you choose to expose. If using this feature, make sure that you have complete control over the webpages which you load into the browser widget, and consider using https to ensure that third-parties cannot inject malicious code into them.
157
+
>*Warning:* Setting the <javascriptHandlers> property gives JavaScript running within the Web browser permission to execute parts of your application through the handlers you choose to expose. If using this feature, make sure that you have complete control over the webpages which you load into the browser widget, and consider using https to ensure that third-parties cannot inject malicious code into them.
158
158
159
159
160
160
Name: browserDocumentLoadBegin
@@ -298,22 +298,22 @@ metadata svgicon is "M21.7,12c0,5.4-4.4,9.7-9.7,9.7S2.3,17.4,2.3,12S6.6,2.3,12,2
298
298
--
299
299
300
300
-- property declarations
301
-
property url get getUrl set setUrl
302
-
metadata url.editor is "com.livecode.pi.text"
301
+
property URL get getUrl set setUrl
302
+
metadata URL.editor is "com.livecode.pi.text"
303
303
304
-
property htmltext get getHtmlText set setHtmlText
304
+
property htmlText get getHtmlText set setHtmlText
305
305
306
-
property vscrollbar get getVScrollbar set setVScrollbar
307
-
metadata vscrollbar.editor is "com.livecode.pi.boolean"
306
+
property vScrollbar get getVScrollbar set setVScrollbar
307
+
metadata vScrollbar.editor is "com.livecode.pi.boolean"
308
308
309
-
property hscrollbar get getHScrollbar set setHScrollbar
310
-
metadata hscrollbar.editor is "com.livecode.pi.boolean"
309
+
property hScrollbar get getHScrollbar set setHScrollbar
310
+
metadata hScrollbar.editor is "com.livecode.pi.boolean"
311
311
312
-
property useragent get getUserAgent set setUserAgent
313
-
metadata useragent.editor is "com.livecode.pi.text"
312
+
property userAgent get getUserAgent set setUserAgent
313
+
metadata userAgent.editor is "com.livecode.pi.text"
314
314
315
-
property javascripthandlers get getJavaScriptHandlers set setJavaScriptHandlers
316
-
metadata javascripthandlers.editor is "com.livecode.pi.text"
315
+
property javascriptHandlers get getJavaScriptHandlers set setJavaScriptHandlers
316
+
metadata javascriptHandlers.editor is "com.livecode.pi.text"
0 commit comments