It is possible to get the html return data and stored on var for future processing ?
Code: Select all
Global browserID
Global theURL
Global thehtmlFile
on preopencard
-- Create our browser control and store the id
if the platform is "android" then
mobileControlCreate "browser"
put the result into BrowserID
mobileControlSet browserID, "rect", the rect of group "tbrowser"
mobileControlSet browserID, "visible", "true"
mobileControlSet BrowserID, "url", theURL
else
iphoneControlCreate "browser"
put the result into BrowserID
-- Native controls start off invisible
iphoneControlSet BrowserID, "rect", the rect of group "tbrowser"
iphoneControlSet browserID, "visible", "true"
-- Set up a suitable initial url
iphoneControlSet BrowserID, "url", theURL
end if
end preOpenCard
on closeCard
if the environment is not "mobile" then
exit closeCard
end if
-- Destroy the control, if we fail to do this native UIViews
-- will just accumulate
if the platform is "android" then
mobileControlDelete BrowserID
delete URL("file:" & thehtmlFile)
else
iphoneControlDelete BrowserID
delete file thehtmlFile
end if
end closeCard