Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by tontu89 on Apr 02, 2009 19:01
open dhtmlx forum
how can get value inside dhtmlxwindow

I have a html page with button. When button clicked dhtmlxwindow (it attachs a URL) is displayed. How parent page (a function in parent page) can get value inside dhtmlxwindows such as value in a text box, listbox... inside the window
Answer posted by Alex (support) on Apr 03, 2009 05:00

You can try to use something as follows:

var val ="";

if (_isIE) {
  val = dhxWins.window(id)._frame.contentWindow.document.getElementById("divId").value ;
} else {
  val =  dhxWins.window(id)._frame.contentDocument.getElementById("divId").value ;
}