A Alessandra Pellegri Active Member Licensed User Longtime User Dec 14, 2015 #1 I am porting my app from android. In the there is a webview control with a javascript loaded. The javascript raises a 'click' event : B4X: addEventListener('click', myFunction); In android I intercept the event with B4A.CallSub. How could I do in B4I ? Thank you
I am porting my app from android. In the there is a webview control with a javascript loaded. The javascript raises a 'click' event : B4X: addEventListener('click', myFunction); In android I intercept the event with B4A.CallSub. How could I do in B4I ? Thank you
Erel B4X founder Staff member Licensed User Longtime User Dec 15, 2015 #2 There is no equivalent method in iOS. You can use the OverrideUrl as a callback. Change window.location in your JavaScript and it will cause the OverrideUrl to be raised. Return True from this sub to prevent the location change. Upvote 0
There is no equivalent method in iOS. You can use the OverrideUrl as a callback. Change window.location in your JavaScript and it will cause the OverrideUrl to be raised. Return True from this sub to prevent the location change.
A Alessandra Pellegri Active Member Licensed User Longtime User Dec 16, 2015 #3 Thanks, solved. Upvote 0