Yesterday I got this code from the anscamobile sample code to see if it’d help, but it didn’t:
[code]
– Webpopup listener
local function listener( event )
local shouldLoad = true
local url = event.url
if 1 == string.find( url, “corona:close” ) then
– Close the web popup
shouldLoad = false
end
if event.errorCode then
– Error loading page
print( "Error: " … tostring( event.errorMessage ))
shouldLoad = false
end
return shouldLoad
end
– If network exists, pop up page
if testNetworkConnection() == true then
local options = { hasBackground=false, baseUrl=system.ResourceDirectory, urlRequest=listener }
native.showWebPopup( 0, 48, 320, 432, “podcastplayer.html”, options )
else native.showAlert( “Tech Webcast”, “No network detected. Please connect to 3G or Wifi.”, { “OK”, }, toMenu )
end
[/code] [import]uid: 10389 topic_id: 10168 reply_id: 45521[/import]