Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ZedR on Apr 16, 2009 05:48
open dhtmlx forum
attachURL of dhtmlx window

Hi!

How can I pass tree object to the url used in attachURL of window? Is it possible? The url is a php script. I need to find the childless nodes of a node in that script.
Thanks.
Answer posted by Alex (support) on Apr 16, 2009 06:26

Hello,

The iframe inside window is available by _frame property:

var frame = win._frame;

So, the tree object is

var tree = frame.contentWindow.treeObject;

Answer posted by ZedR on Apr 16, 2009 06:39
Hi!

Javascript is not working on the server script given in attachURL(not even an alert function on load). I am also trying to use dhtmlx Tabbar in that url page which is also not working. Only all the tab content is displayed. Please help.
Thanks.
Answer posted by Alex (support) on Apr 16, 2009 06:58

dhtmlxWindows is a client-side component.

You can send ajax request to the server (for example dhtmlxAjax) or use another known approach to pass data to the server. 

 

Answer posted by ZedR on Apr 16, 2009 07:14
Can I use dhtmlxTabbar in dhtmlxWindow by attaching it by url instead of html?
Answer posted by Alex on Apr 17, 2009 01:14

If the tabbar is intialized in some page and you place this pade into dhtmlxwindow iframe using attachURL method, the tabbar will appear in the window.