B4A Question How call DownloadAndSave? - AnandGupta (first post)    May 31, 2020   (1 reaction) Hi Serge You can use WebView1_OverrideUrl to get url of file clicked in webpage in your webview. Then you can download the url file as required. Regards, Anand B4J Question WebView1_OverrideUrl in B4J !? - ghadiri    Aug 10, 2024 Hello,
I used a webview in B4A and I open the internal links loaded in the webview in the system’s default browser using the WebView1_OverrideUrl event. However, the WebView1_OverrideUrl event does not exist in B4J. How can I open links in the system’s default browser in B4J since this event is not B4A Question Webview page loading message - mc73 (first post)    Apr 03, 2022   (1 reaction) sub yourWebView__OverrideUrl (Url As String) As Boolean progressDialogShow("Loading...") return false end sub sub yourWebView_PageFinished (Url As String) progressDialogHide end sub B4A Question Open a hyperlink on a page in another webview - stevel05 (first post)    Jul 31, 2018   (3 reactions) Use the OverrideURL callback of webview and load the url into the second webview: Sub WebView1_OverrideUrl(Url As String) As Boolean WebView2.LoadUrl(Url) Return True 'Return True to make webview1 ignore the link End Sub B4A Question Display message in OverrideUrl - drgottjr (first post)    Dec 05, 2021   (1 reaction) Sub wbvWebView_OverrideUrl (Url As String) As Boolean
CallSubDelayed(Me, "MySub", Url)
Return True
End Sub
Sub MySub(String Url)
' Set some values
Dim values() As String
values = Regex.Split("", Url.SubString(7))
Dim row As Int
row = values(1)
CurrentINVIndex = row
B4A Question net::ERR_UNKOWN_URL_SCHEME : WebView issue after following second link - JohnC (first post)    Jun 16, 2021 In the "webview1_overrideurl" event of the activity that has the webview in it. B4A Question Webview - JohnC (first post)    Sep 17, 2021 Any link that the user clicks on will trigger the webview_OverrideUrl (URL As String) As Boolean event.
You can then check the passed URL to figure out how you want to handle it - for example, open another B4xpage.
But remember that if you do handle the event, then "Return True" in this event so t B4A Question WebView & Action - JohnC (first post)    Jan 14, 2023   (1 reaction) You would have event code like this that would run when the user clicks a link that goes to b4x.com: Sub Webview1_OverrideUrl (URL As String) As Boolean If URL.ToUpperCase = "HTTPS://B4X.COM" Then 'do action End If Return False 'flag so that webview1 will still display the B4i Question Webview_OverrideUrl as ResumableSub crashes since B4i 6.50 - Percy Huijer    Jun 10, 2020 Anyone recon this issue? Since I upgraded to B4i version 6.50, my app crashes when the Webview_OverrideUrl code is called.
The Webview_OverrideUrl is a ResumeableSub. Previous version worked fine.
Error raised:
-: unrecognized selector sent to instance 0x280d36aa0 B4i Question Webview to Objective C - JanPRO (first post)    Mar 11, 2016   (2 reactions) Hi, you can use the OverrideUrl event: WebView1.LoadHtml($" <a href="OpenPDF">Link1</a> <br> <br> <a href="OpenVideo">Link2</a> "$) Sub WebView1_OverrideUrl (Url As String) As Boolean Dim Tag As String = Url.SubString2(Url.LastIndexOf("/") +1,Url.Length) Select Tag Page: 1   2   3   4   5   6   7   Powered by ColBERT |