Unable to Run Java Script in DHTMLX Window after attachURL

I’m having a problem running some java script after attaching a basic HTML page to a DHTMLX Window. All I really want todo is call some javascript in order to pass in some values.



I’ve scoured the knowledge base and documentation but to no avail! I can’t see what i’m doing differnetly from what the documentation says!



All I get is an error saying that either the method doesn’t exist on that object or that the object is null or not an object.



A cut down version of my source code is below.



Many thanks,



Rob



// Window Call Code---------------------------------------------------------------------------









Attach Win































----------------------------------------------------------------------------------------------



// Basic HTML Code ----------------------------------------------------------------------









Basic Win









Basic Window





------------------------------------------------------------------------------------------------------


method attachURL(url,true) loads content by Ajax (asynchronously) and iframe isn’t used in this case:


dhxWins.window(‘win_disc’).attachEvent(“onContentLoaded”,function(win){


window.setTimeout(function(){MyFunc(“Hello!”);},1);


});


dhxWins.window(“win_disc”).attachURL(“./basic.html”, true);



We have attached the version of dhtmlxcontainer.js that executes script defined in the attached page.




dhtmlxcontainer.zip (5.86 KB)