I am attempting to open a new browser window, this is the example code from the documentation,
Code: Select all
on browserNewUrlWindow pInstanceId, pUrl
go stack (the owner of me)
end browserNewUrlWindow
While experimenting with the browser and clicking on a link that opens in a new window, I used the message watcher, I can see that the following occurs.
Code: Select all
browserBeforeNavigate
browserBeforeNavigate
browserNewURLWindow
BrowserNewUrLWindow
browserBeforeNavigate
browserBeforeNavigate
I am wondering the best way to use revBrowserOpen function
dynamically, to open a new "window"
revBrowserOpen(windowId [, url ] )
The challenge is that with this code, uses revBrowserOpen to load the initial URL
Which I would like to do dynamically,
Code: Select all
command browserInit
local tBrowserId
put revBrowserOpen(the windowId of this stack, "http://somewebsitecomcom/index.php") into tBrowserId
browserEnsure tBrowserId
put tBrowserId into sBrowserId
revBrowserSet sBrowserId, "rect", the rect of graphic "Browser Rect" of me
revBrowserSet sBrowserId, "scrollbars", true
end browserInit
which has a variable of http://mywebsite.com and
I put that into the revBrowserOpen(windowId [, uField_url ] )
which I am sure does not work, but for the sake of experimentation.
I am wondering how I can put, dynamic URL into a new browser and open it to show the new content.
any suggestions or thoughts are always welcomed.
Tim