Here is the code for the browser
Code: Select all
global gRCBrowser, gCard
local sBrowserId
on preopencard
resizeStack
# quit if we are not on a mobile device
-- if the environment is not "mobile" then
-- exit preOpenCard
-- end if
if the environment is "mobile" then
# create the browser
mobileControlCreate "browser"
put the result into sBrowserId
# set up the basic defaults
mobileControlSet sBrowserId, "rect", the rect of group "rcBrowser"
mobileControlSet sBrowserId, "visible", "true"
mobileControlSet sBrowserId, "url", gRCBrowser
mobileControlSet sBrowserId, "autofit", true
put "http://www.irs.gov" into field "devURL"
///put gRCBrowser into field "devURL"
///answer gRCBrowser
end if
By the way.... I have selected internet in the Standalone settings. I am testing this using Android off a Windows PC