I've been staring at this for hours and can't see the problem. The code below loads the web page into the webview but in the IDE Log panel it displays "Not supported". I don't know what's "Not supported" and if I try to display another webpage in a different sub, I get the "*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener:..." message. I'm using B4i 4.3, a local Mac and IOS 11.0.3 on the phone. Does anyone see a problem?
Sub Process_Globals
Private WebView1 As WebView
Private Btn_finish As Button
Private Page3 As Page
End Sub
Sub Show_View
If Page3.IsInitialized = False Then
Page3.Initialize("Page3")
End If
Page3.RootPanel.LoadLayout("mywebview")
Main.NavControl.ShowPage(Page3)
WebView1.LoadURL("http://www.google.com")
End Sub
Sub Process_Globals
Private WebView1 As WebView
Private Btn_finish As Button
Private Page3 As Page
End Sub
Sub Show_View
If Page3.IsInitialized = False Then
Page3.Initialize("Page3")
End If
Page3.RootPanel.LoadLayout("mywebview")
Main.NavControl.ShowPage(Page3)
WebView1.LoadURL("http://www.google.com")
End Sub