Here is my code. for the life of me I dont understand why I am getting a run time error that said “attempting to call field ‘request’ ( a nil value)”.
[lua]local function loadWebPage()
native.showWebPopup(10, 50, 300, 350, “http://www.zukagames.com/sports/help.html”, {hasBackground=false} )
end
local function networkListener( event )
if( event.isError ) then
print( "Network error: ", event.response )
else
print( "Status Code: " … event.status )
if event.status == 200 then
print( “Loading web page …” )
loadWebPage()
else
print( “Web page not loaded!” )
end
end
end
network.request( “http://www.zukagames.com/sports/help.html”, “GET”, networkListener )[/lua]