revBrowserOpenCef

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
revBrowserOpenCef( <windowId> [, <url> ] )
Summary

Opens and initialises a new Chrome-based browser.

Introduced6.7
Changes

In LiveCode 8.0+, this function is no longer supported on Mac.

OSwindows
Platformsdesktop
Parameters
NameTypeDescription
windowID

the operating system ID for a stack window as given by the stack windowID property.

url

the initial url to navigate to when opening the browser. The URL can be a page from a web server, beginning "http://", or a local file, beginning "file://"

Example
local tBrowserId
put revBrowserOpenCef(the windowId \
      of this stack, "http://www.livecode.com" ) into tBrowserId
if tBrowserId is not an integer then
  answer "Failed to open browser"
end if
local tBrowserId, tFile   
answer file "Please choose a file to display"
if the result is not "cancel" then
  put it into tFile
  put revBrowserOpenCef(the windowId \
        of this stack, "file://" & tFile) into tBrowserId
end if
Values
NameTypeDescription
return

The revBrowserOpenCef function returns a value. If successful this will be an integer browser instance id, if unsuccessful, the result will be empty.

The result

If successful this will be an integer browser instance id, if unsuccessful, the result will be empty.

RelatedCommand: revBrowserStop, revBrowserPrint, revBrowserSet, revBrowserMakeTextBigger, revBrowserNavigate, revBrowserAddJavaScriptHandler, revBrowserRemoveJavaScriptHandler, revBrowserClose
Message: browserOver, browserNewInstance, browserNewUrlWindow, browserDownloadRequest, browserNavigateCompleteFrame
Securitynetwork
Description

The revBrowserOpenCef function creates a new Chrome-baseed browser in the window with the given windowId. If a url is given, the browser immediately navigates to this url.

The revBrowserOpenCef function creates a new Chrome-baseed browser in the window with the given windowId. If a url is given, the browser immediately navigates to this url.