Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michael Marr on Dec 02, 2008 10:58
open dhtmlx forum
refer to existing dhtmlx object from inside dhtmlx window pane

Is it possible to access an existing dhtmlx object from inside a non-initializing page placed into a dhtmlx window pane?
Answer posted by Support on Dec 03, 2008 02:23
When you creating any dhtmlx component you have receive an object reference , which may be stored in global or local variable. 
If varialble is global it can be accessed from any other code on the page. 
Content of dhxWin can be loaded by ajax - in such case you can use direct reference as
   mygrid.someMethod(...
or content can be loaded as sub-frame - in such case code must use parent prefix
 parent.mygrid.someMethod(...