Hi,
I have multiple WebViews and I want to be able to click a record on the first one and open a different page in the second. In my example the second WebView is not updating. If I carry out the same instruction using a button then the second WebView does update.
Am I missing something in my OverrideUrl event?
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
WebView1.LoadURL("file:///" & File.DirRootExternal & "\greatgainstrading\" & "Test.html")
WebView2.LoadURL("file:///" & File.DirRootExternal & "\greatgainstrading\" & "Test.html")
WebView3.LoadURL("file:///" & File.DirRootExternal & "\greatgainstrading\" & "FDL.html")
End Sub
Sub Button1_Click
WebView2.LoadURL("file:///" & File.DirRootExternal & "\greatgainstrading\" & "FDL.html")
End Sub
Sub WebView1_OverrideUrl (Url As String) As Boolean
WebView2.LoadURL("file:///" & File.DirRootExternal & "\greatgainstrading\" & "FDL.html")
Return True
End Sub
Sub Button2_Click
WebView2.LoadURL("file:///" & File.DirRootExternal & "\greatgainstrading\" & "test.html")
End Sub
Thanks
Charles
I have multiple WebViews and I want to be able to click a record on the first one and open a different page in the second. In my example the second WebView is not updating. If I carry out the same instruction using a button then the second WebView does update.
Am I missing something in my OverrideUrl event?
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
WebView1.LoadURL("file:///" & File.DirRootExternal & "\greatgainstrading\" & "Test.html")
WebView2.LoadURL("file:///" & File.DirRootExternal & "\greatgainstrading\" & "Test.html")
WebView3.LoadURL("file:///" & File.DirRootExternal & "\greatgainstrading\" & "FDL.html")
End Sub
Sub Button1_Click
WebView2.LoadURL("file:///" & File.DirRootExternal & "\greatgainstrading\" & "FDL.html")
End Sub
Sub WebView1_OverrideUrl (Url As String) As Boolean
WebView2.LoadURL("file:///" & File.DirRootExternal & "\greatgainstrading\" & "FDL.html")
Return True
End Sub
Sub Button2_Click
WebView2.LoadURL("file:///" & File.DirRootExternal & "\greatgainstrading\" & "test.html")
End Sub
Thanks
Charles