revbrowser newbie
Posted: Wed Aug 18, 2010 1:17 am
I tried out the lesson at http://lessons.runrev.com/buckets/784/lessons/15963, Launching a PDF in an external viewer but I'm getting card id 1002: execution error at line n/a () near "unknown browser id". What am I missing here?
-- My card script
local sBrowserId
on openCard
browserOpen
end openCard
on browserOpen
-- We pass the windowId of the stack to revBrowser
-- so that it can determine which window to place the
-- browser object into
put the windowid of this stack into tWinID
-- Open the browser, using the windowId and initial url
put revBrowserOpen(tWinID,"") into sBrowserId
-- Set some basic properties for the browser
revBrowserSet sBrowserId, "showborder","true"
revBrowserSet sBrowserId, "rect",rect of image "browser image"
end browserOpen
on browserClose
revBrowserClose sBrowserId
end browserClose
on browserSetURL pURL
## Set the url to be displayed to the given url
revBrowserSet sBrowserId, "url", pURL --card id 1002: execution error at line n/a () near "unknown browser id"
end browserSetURL
-- My card script
local sBrowserId
on openCard
browserOpen
end openCard
on browserOpen
-- We pass the windowId of the stack to revBrowser
-- so that it can determine which window to place the
-- browser object into
put the windowid of this stack into tWinID
-- Open the browser, using the windowId and initial url
put revBrowserOpen(tWinID,"") into sBrowserId
-- Set some basic properties for the browser
revBrowserSet sBrowserId, "showborder","true"
revBrowserSet sBrowserId, "rect",rect of image "browser image"
end browserOpen
on browserClose
revBrowserClose sBrowserId
end browserClose
on browserSetURL pURL
## Set the url to be displayed to the given url
revBrowserSet sBrowserId, "url", pURL --card id 1002: execution error at line n/a () near "unknown browser id"
end browserSetURL