Window with Toolbar attachURl

Greetings!

I create a window, attach a toolbar (with some buttons), attach an “onclick” event handle to the toolbar then attachURL to the window.

Launches just fine, toolbar looks nice. Now I want to click on the tool bar and run some code in the URL attached HTML page with its associated javascript. The buttons’ event handler of course is looking at the parent. How to ‘look at’ the child HTML?

Any guidance on how to accomplish this?

thanks,
Have fun, Paxton

Solved. Simply build the toolbar in the ‘child’ window… looks and works great.

have fun,
Paxton

Hello,

If the page that is loaded by attachURL method is from the same domain as the parent page, you may use getFrame method to access an iframe object and its content:

var win = dhxWins.createWindow(…);
var contentWindow = win.getFrame().contentWindow;
var doc = contentWindow.document;