dhtmlxWindow 2.0: accessing content

Hello,



I create a window and I attach a html file with the method “attachURL(url)”

I can not access an element of the url attached.



In chapter 3.5 of your documentation you wrote:

“The inner window content, loaded without AJAX, can be accesses through win._iframe (this is a direct link to the object).”



i try dhxWins.window(‘MyId’)._iframe.document.forms[‘A’].zone1.value=‘test’;



This does not work.

Could you give me an example.



Thank you in advance

Hello,

try this:

if (_isIE) {
    dhxWins.window(id)._frame.contentWindow.document.getElementById(“A”)

} else {
    dhxWins.window(id)._frame.contentDocument.getElementById(“A”)

}