B4J Question [ Webview ] Is there any way to execute direct javascript functions in the b4j webview? - Erel (first post)    Sep 20, 2023   (1 reaction) Cross platform code: https://www.b4x.com/android/forum/threads/b4x-webview-ckeditor-rich-text-editor.133260/#content... B4A Tutorial [B4X] WebView + CKEditor (rich text editor) - Erel    Oct 20, 2022   (18 reactions) RunJavaScript (js As String) As ResumableSub #if B4A WebViewExtras1.executeJavascript... As String) Return html #Else If B4J Return WebView1.As(JavaObject).RunMethodJO("getEngine", Null).RunMethod("executeScript", Array(js)) #Else If B4i Dim sf As Object = WebView1.EvaluateJavaScript(js) Wait For (sf) WebView1_JSComplete (Success As Boolean...117571 This is a cross platform example that adds CKEditor rich text editor using WebView: https... B4A Library WebViewExtras - warwound    Oct 16, 2023   (36 reactions)   tags: Webview false, only the RAM cache is cleared. executeJavascript(webView1 As WebView, javascriptStatement As String) Executes a string of one or more javascript statements in webView1. javascriptStatement...: addJavascriptInterface(webView1 As WebView, interfaceName As String) Add a javascript interface to webView1, methods of the interface can be accessed using javascript with the interfaceName... your webView with the interfaceName of "B4A" then you can write javascript... B4A Question Webpage on a WebView, populate the page - b4x-de (first post)    Jun 25, 2025 Check WebView.LoadURL() and search the forum for webview+JavaScript: https://www.b4x.com/android/forum/pages/results/?query=webview+execute+javaScript... B4A Question Execute javascript inside a webview - hub73    Mar 15, 2016 i use a webview inside my application. i'm loading a php page. Is it possible to include some javascript inside the php code ?
i'm trying this ... but no alert message displayed on screen :
print ("
<script language='JavaScript'>
alert(\"This carriage return... B4A Question executeJavascript problem in webview - cbanks (first post)    Jan 14, 2014 Thanks for all your help! I got it working by only including the numbers as variables.... B4A Question webview - get a bitmap with javascript - yo3ggx    Jan 20, 2023 ('mpcanvas0'));"$
WebViewExtrasSDR.executeJavascript(WebView1,text)
Sub pic_cb(b As Object...I want to extract the image in a bitmap using a webview and javascript commands.
The code on the web page looks like that:
<canvas class="mypic" id="mpcanvas0" width="1024" height="100" >test</canvas>
The image is dynamically changed. If... B4A Question Problem setting values 2 webpage controls - RB Smissaert    Nov 3, 2019 (WebView1, JavaScript)
but again same result.
The control names are fine, copied from the web source... & "';"
WebViewExtras1.executeJavascript(WebView1, Javascript) '<<<<...) & "';"
WebViewExtras1.executeJavascript(WebView1, Javascript) '<<<... & "';"
WebViewExtras1.executeJavascript(WebView1, Javascript) '<<<<... B4A Question Pass more than 3 arguments from B4A to WebView Javascript function - max123    May 31, 2024 created two releases of this app, one with Javascript injected using WebViewExtras.executeJavascript in... I put a ScrollView with a long EditText, here I write directly the Javascript code to be executed in... the EditText I do not see the HTML file, just the Javascript to put inside the HTML <script>... string with Javascript too and load it in the WebView, this work very well and just by changing the JS..., I started from here: https://www.b4x.com/android/forum/threads/b4x-using-three-js-webgl-in-a-webview... B4A Question read value of function return in webview - b4x-de (first post)    Jul 6, 2025 This can be also done this way: WebView_ex.executeJavascript(WebView1, $"B4A.CallSub('MySubName', true, myFunction(28,25))"$) and even shorter: WebView_ex.executeJavascript(WebView1, $"B4A.CallSub('MySubName', true, myFunction(28,25))"$) Wait For MySubName(result AS Int)... Page: 1   2   3   4   5   6   7   |