Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by PCBiker on Oct 23, 2008 04:47
open dhtmlx forum
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
Answer posted by Support on Oct 23, 2008 05:20
Hello,

try this:

if (_isIE) {
    dhxWins.window(id)._frame.contentWindow.document.getElementById("A")
} else {
    dhxWins.window(id)._frame.contentDocument.getElementById("A")
}