Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kris A on Sep 14, 2009 10:33
open dhtmlx forum
Access Iframe data from DHTMLX layout

Hi ,

I am using DHTMLX layout and each cell has an IFRAME attached. I need to access data within these IFRAMES, I cant seem to be figure out how. Can you help please?

This is what I have:
===========

dhxLayout.cells("c").attachURL("test.php");
var ifr = dhxLayout.cells("c")._frame;

the test.php has an input field whose id is name. I need to access this. How do i do it ?
Thanks in advance.
Answer posted by Alex (support) on Sep 15, 2009 05:56

Hello,

you can try to use teh following approach:

var input_element = dhxLayout.cells(id)._frame.contentWindow.document.getElementById(element_id)

But please note that this approach can be executed only after test.php is loaded.