View Full Version : Having problem with DHTML Iframe

03-23-2009, 01:49 PM
Hi Guys,

I am having problem in using Iframe stuff.
My webpage already contains few Iframes and I am not able to use the Iframe content Type in my page.
Could someone let me know how can I get over this problem?

I am using below code snippet to open dhtml window on page load.
var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://images.google.com/", "#1: Google Web site", "width=590px,height=350px,resize=1,scrolling=1,center=1", "recal")
I am not able figure out what the real issue is.


03-24-2009, 04:14 PM
What's dhtmlwindow? More code would be helpful.

03-25-2009, 06:32 AM
<link rel="stylesheet" href=modal.css' type='text/css' />
<link rel="stylesheet" href=dhtmlwindow.css' type='text/css' />
<script type='text/javascript' src='dhtmlwindow.js'></script>
<script type='text/javascript' src='modal.js'></script>
I am using the same javascript code given in this website.
Problem is I am trying to open dow within another IFRAME. So the screen is getting painted on the same window instead of opening a new window.
If you check dhtmlwindow.js given in this website, they are trying to create a new Iframe to open the new window. If Iframe already exists then the new window will be painted on the same page.