I can change <object? html file in root html file from server side but i cann't call setValue from server side by websocket ? because i don't know how to access led1.html and then call setValue in the <object> tag ?
root html file(web socket client)
child html file
How to call setValue function inside root html file from server side with websocket?
root html file(web socket client)
B4X:
<div id="container">
<object id="panel" width="100%" height="100%" data="led1.html"></object>
</div>
child html file
B4X:
<script type="text/javascript">
function [B][COLOR=rgb(226, 80, 65)][B]setValue[/B][/COLOR][/B](id,value) {
console.log('id: ' + id + ', value: ' + value);
graphic.setValue(id, value);
}
</script>
How to call setValue function inside root html file from server side with websocket?