View Full Version : Referencing Objects in the Window

10-15-2007, 09:52 AM
1) Script Title:
DHTML Window Widget

2) Script URL (on DD):

3) Describe problem:
Hi... I've created a window using Window Wideget (using a hidden DIV) and I need to dynamically change the content of several things in the window... I can alter DIVs no problem by using document.getElementById('div name').innerHTML but I also have an instance of the fckeditor on my page...

FCKEditor has it's own set of methods/properties, one of which is:

FCKEditororAPI.GetInstance('editor object name').SetHTML('html text')

This worked fine before using Window Widgets but since putting my hidden DIV into a WW I can no longer use this line... I guess because the editor is now within the scope of the window, not my document.

So... can anyone tell me how to reference objects in the window?

Note: I create my window in a javascript when the user clicks a button like this:

var popupSendMessage=dhtmlwindow.open("winSendMessage", "div", "divSendMessage", "send message", "width=600px,height=330px,center=1,resize=0,scrolling=0");

I've tried referencing the objects with popupSendMessage.xxxx and winSendMessage but to no avail.

Thanks in advance!