Dear All,
I have a page in a webview which should not be visible untill a certain event is fired in the javascript:
Since there´s no webview incoming event where I could for instance have a text echo´d temporarily and trigger on this, I was thinking that maybe there is a way to do it with javaobject. Sorry if that´s a weird thing to ask that can´t be done at all. Another option is to use advancedwebview where there´s at least a download even that fires whenever a file is being downloaded. I already tried that but with my approach with creating a small file within the script itself, webview (and stock browser) crashes. It may work with a "real" http download, but I find this approach a bit clumsy in the first place, having a file downloading to trigger an event, even if the download is automated.
Let me hear if you got any ideas.
Thanks in advance!
I have a page in a webview which should not be visible untill a certain event is fired in the javascript:
B4X:
if (event.type === 'remote') {
var mediaElement = getMediaElement(event.mediaElement, {
title: event.userid,
buttons: [],
width: width,
showOnMouseEnter: false
});
Since there´s no webview incoming event where I could for instance have a text echo´d temporarily and trigger on this, I was thinking that maybe there is a way to do it with javaobject. Sorry if that´s a weird thing to ask that can´t be done at all. Another option is to use advancedwebview where there´s at least a download even that fires whenever a file is being downloaded. I already tried that but with my approach with creating a small file within the script itself, webview (and stock browser) crashes. It may work with a "real" http download, but I find this approach a bit clumsy in the first place, having a file downloading to trigger an event, even if the download is automated.
Let me hear if you got any ideas.
Thanks in advance!