Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by thezainic on Jun 30, 2009 02:29
open dhtmlx forum
send value to dhtmlx windows

i have two iframe dhtmlx windows.
both windows contain textbox.
how to send value from first textbox to the other
Answer posted by Alex (support) on Jun 30, 2009 06:12

You can try to use the following approach to place value  of input from one window to input from the other (this method is called from the main page):

if (_isIE)

  win2._frame.contentWindow.document.getElementById("inputId").value = win1._frame.contentWindow.document.getElementById("inputId").value;

else

  win2._frame.contentDocument.getElementById("inputId").value = win1._frame.contentDocument.getElementById("inputId").value;