Browsers
Posted: Fri Dec 15, 2017 1:05 am
I'm confused and frustrated because the script that used to work for going to a browser doesn't work on my android anymore. I'm not sure if I accidentally removed a key line of code or whether LiveCode changed.
Here is the code for the browser
Thanks for your help. I have also attached a stripped down stack. Click on the button and it goes to the browser card...but never opens the webpage.
By the way.... I have selected internet in the Standalone settings. I am testing this using Android off a Windows PC
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