webview Listener html body

Hi,

for webviews

is there a way to read the html content of a webview through the listener (for example   print(event.html) or print(event.body))

local function webListener( event )     if event.url then --     print(event.html) or print(event.body)         print( "You are visiting: " .. event.url )     end        if event.type then         print( "The event.type is " .. event.type ) -- print the type of request     end        if event.errorCode then         native.showAlert( "Error!", event.errorMessage, { "OK" } )     end end

webView = native.newWebView( display.contentCenterX, display.contentCenterY-100, display.contentWidth, display.contentHeight-200)

    webView:request( "www.coronalabs.com" )

webView:addEventListener( "urlRequest", webListener )

Not that I’m aware of.  Corona can detect when links are interacted with and you can get the URL that was interacted with. If that URL has HTTP style GET key-value pair parameters, you could parse that data out and get information that way.

Rob

Thats too bad cause i need to use a webview for an API login and while it happens rarely, it does happen that the view gets a load error and displays data, i’d not wish to show, but there is no way to detect when that happens. Printing web listener data lists nothing when that happens.

Not that I’m aware of.  Corona can detect when links are interacted with and you can get the URL that was interacted with. If that URL has HTTP style GET key-value pair parameters, you could parse that data out and get information that way.

Rob

Thats too bad cause i need to use a webview for an API login and while it happens rarely, it does happen that the view gets a load error and displays data, i’d not wish to show, but there is no way to detect when that happens. Printing web listener data lists nothing when that happens.