but this doesn’t work, firebug says ‘TypeError: dhxDlg.window(…)._frame is undefined’. If I do it like this:
dhxDlg.window('RVDlg').vs.def._frame.contentWindow.TestMe();
it runs fine !?
What’s this
...vs.def...
, and I’m not sure if this is the propper way. How else can I access ma function?
Thanks in advance.
Hi
First of all you must be sure that you try to call this function after window is loaded. It seem like you have exactly this issue (based on error message)
1th question from ReadMe.txt file:
Method close() unloads ONE current window (in you case w1 or w2).
Method unload() it is destructor for Global dhxWindow object (in your case dhxWindow or dhxWindow2). You need to use only
dhxWindow2.unload();
Int mast be ONLY ONE Global dhxWindow object on the page.
If you need to destruct all the window, you need to use unload() for global one
If you need to destruct only one window, apply close() for it
2th question from ReadMe.txt file:
There is a method getFrame(), you need the next: dhxWindow1.window(‘w1’).getFrame().contentWindow.TestMe();
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan