Hi
I know its been a while since i responded to this thread, but i have been busy and only have time now. The original test where it would show the window in another page without the scowling and the resize. I have two problems with this firstly it seems to frame the first one and neither the scrawlers or the resize has been disabled. Secondly it doesnt stay the same size or keep the same position, is this possible?
Here is the code i am running in demo.htm
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<link rel="stylesheet" href="windowfiles/dhtmlwindow.css" type="text/css" />
<script type="text/javascript" src="windowfiles/dhtmlwindow.js">
/***********************************************
* DHTML Window Widget- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<!-- 1) DHTML Window Example 1: -->
<script type="text/javascript">
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")
</script>
<script type="text/javascript">
function disablescroll(){
parent.googlewin.getElementsByTagName('iframe')[0].scrolling='no'
parent.googlewin.isResize(false)
}
</script>
<a href="test2.htm" onClick="disablescroll()">Go to another page</a>
<div style="height: 800px"></div>
and test2.html
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<link rel="stylesheet" href="windowfiles/dhtmlwindow.css" type="text/css" />
<script type="text/javascript" src="windowfiles/dhtmlwindow.js">
/***********************************************
* DHTML Window Widget- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<!-- 1) DHTML Window Example 1: -->
<script type="text/javascript">
var googlewin=dhtmlwindow.open("googlebox", "iframe", "demo.htm", "#1: Google Web site", "width=590px,height=350px,resize=1,scrolling=1,center=1", "recal")
</script>
Please can you tell me why i am having these problems?
thanks for all your help
Bookmarks