Home › Forums › Programming › How to get status if v3d in js?
I am trying to detect when Verge3D has loaded outside the auto built scripts (visual_logic.js).
in my own test.js file, after waiting a few seconds, I can do:
var D3WebGL = document.getElementById(“web3d”); //iframe var win = D3WebGL.contentWindow; var myAppInstance = win.v3d.apps;
Which works but I need a way to determine “when” the web3d canvas has loaded inside the iframe and not the iframe itself.
v3d.js is obfuscated so I can not trawl through it.
Thanks for any help Geoff
3D Animation and Web3D services - www.d3pixel.co.uk
In your_app_name.js script there is runCode() function which is basically a callback for finished loading. From it, you might call functions from your own script.
3D Verger, the CEO LinkedIn | FB | Twitter | VK | 新浪微博
Test your math: 7 − 6 =
Log in / Register