(Created page with "Launches a url in a widget Syntax launch url tUrl in widget Use the launch url command to open a url within a widget. When launch url in widget is called, LiveCode sends a ...") Tag: sourceedit |
Tag: sourceedit |
||
Line 4: | Line 4: | ||
launch url tUrl in widget |
launch url tUrl in widget |
||
− | Use the launch url command to open a url within a widget. When launch url in widget is called, LiveCode sends a |
+ | Use the launch url command to open a url within a widget. When launch url in widget is called, LiveCode sends a [[OnLaunchURL]] message to that widget with url as the parameter. The widget can then display the url in an appropriate manner. |
The supported url types will vary depending on the capabilities of the widget. |
The supported url types will vary depending on the capabilities of the widget. |
||
Line 13: | Line 13: | ||
Note: The url must be a standards-compliant URL. In particular, file: urls must be of the form ''<nowiki>file://<absolute path></nowiki>'', and the path should be URL-encoded. |
Note: The url must be a standards-compliant URL. In particular, file: urls must be of the form ''<nowiki>file://<absolute path></nowiki>'', and the path should be URL-encoded. |
||
− | See also: [[URLEncode]] function |
+ | See also: [[URLEncode]] function, [[OnLaunchURL]] message |
[[Category:Commands]] |
[[Category:Commands]] |
||
[[Category:Widgets]] |
[[Category:Widgets]] |
Latest revision as of 10:03, 12 August 2016
Launches a url in a widget
Syntax
launch url tUrl in widget
Use the launch url command to open a url within a widget. When launch url in widget is called, LiveCode sends a OnLaunchURL message to that widget with url as the parameter. The widget can then display the url in an appropriate manner.
The supported url types will vary depending on the capabilities of the widget.
Example
launch url "http://www.livecode.com" in widget "myWebBrowser"
Note: The url must be a standards-compliant URL. In particular, file: urls must be of the form file://<absolute path>, and the path should be URL-encoded.
See also: URLEncode function, OnLaunchURL message