Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jorge Arzuaga on Aug 27, 2008 08:02
open dhtmlx forum
Set text and value from window to combo

Hi i need setComboValue and setComboText to combo but, from a window for example:

parent.document.ComboObj_$_GET[combo_name].setComboValue($opcion_id);
of
window.opener.document.ComboObj_$_GET[combo_name].setComboValue($opcion_id);


thanks...
Answer posted by Support on Aug 27, 2008 09:37
As far as you known how object instance named - it can be accessed from any window.
If you have init combo as 
   var mycombo = new dhtmlXCombo(...
you can access it from any other window as
   window.opener.mycombo.setComboValue(...
or 
   parent.mycombo.setComboValue(...
Answer posted on Aug 27, 2008 10:18
Ok... thanks..!