View Full Version : open the dhtml window from inside a frame

11-23-2011, 11:14 AM
1) Script Title: DHTML Window widget

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Describe problem: Stuck trying to open the dhtmlwindow from a page inside an iframe, so that the page loads outside the iframe.

I have an index.php with a iframe which loads a page2.html. On page2.html i have a dhtmlwindow.open link.. But when i open the link the dhtmlwindow it opens inside the iframe, and i am struggling to open it outside the iframe, so that it can drag over the entire index.php page..

I have the script and css included on both pages IE: my index.php and the Page2.html. I would like to use this FIX. For both the iframe and div version of the dhtmlwindow.open

Best regards

11-23-2011, 12:09 PM
The normal way to activate something outside the iframe is putting parent. before your javascript. In this case, you would do something like:
uniquevar=parent.dhtmlwindow.open(uniqueID, contenttype, contentsource, title, attributes, [recalonload])
I haven't tested it.
Arie Molendijk.