View Full Version : DHTML Window widget (v1.03)

06-19-2007, 05:11 AM
1) Script Title: DHTML Window widget (v1.03)

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

3) Describe problem: I'm messing around with the iframe feature of this code trying to get it to display a webpage inside the frame. For testing purposes I tried linking to "http://bulletin.myspace.com/index.cfm?fuseaction=bulletin". The problem is, it seems to load the page in the iframe, but immediately after that, it redirects me to that page away from my page. Any suggestions? Here's the code to call the iframe:

<a href="#"
onclick="bulletinwin=dhtmlwindow.open('ajaxbox', 'iframe', 'http://bulletin.myspace.com/index.cfm?fuseaction=bulletin', 'Bulletins', 'width=650px,height=400px,left=300px,top=100px,resize=0,scrolling=1'); return false">Click

I also inluded a very basic test page to show what's happening, it's attached as text.txt if you're a visual person. To see it in action you just have to download and rename it as something.html and open it in your web browser.

And I'm using the latest version of Firefox, if that has anything to do with it.


06-19-2007, 03:31 PM
It is a simple matter for those sites that choose to do so to add code to their page(s) that make them 'break out of frames'. This is done most commonly via javascript and cannot be overridden by a container page from another domain that also relies upon javascript.