M megzz Member Licensed User Longtime User Oct 3, 2017 #1 In B4A there is a method "addJavascriptInterface" so that if I want to call an app Sub from the javascript inside the webview, I just call it via APP.CallSub Does this exist in B4i too? How? Sample code would be greatly appreciated. Thanks in advance!
In B4A there is a method "addJavascriptInterface" so that if I want to call an app Sub from the javascript inside the webview, I just call it via APP.CallSub Does this exist in B4i too? How? Sample code would be greatly appreciated. Thanks in advance!
Erel B4X founder Staff member Licensed User Longtime User Oct 3, 2017 #2 https://www.b4x.com/android/forum/threads/b4i-addjavascriptinterface.72837/#post-462960 Upvote 0
W wl Well-Known Member Licensed User Longtime User Oct 5, 2017 #3 app -> Javascript Log(no.RunMethod("stringByEvaluatingJavaScriptFromString:", Array("document.title"))) Javascript -> app OverrideUrl Upvote 0
app -> Javascript Log(no.RunMethod("stringByEvaluatingJavaScriptFromString:", Array("document.title"))) Javascript -> app OverrideUrl
M megzz Member Licensed User Longtime User Oct 10, 2017 #4 wl said: app -> Javascript Log(no.RunMethod("stringByEvaluatingJavaScriptFromString:", Array("document.title"))) Javascript -> app OverrideUrl Click to expand... Do you write better? Upvote 0
wl said: app -> Javascript Log(no.RunMethod("stringByEvaluatingJavaScriptFromString:", Array("document.title"))) Javascript -> app OverrideUrl Click to expand... Do you write better?