Hello everyone,
I'm currently using JS to create a "popup" window.. which is actully just a div that is positioned absolutley on the page..
The problem I'm having is that once the pop up occurs I trigger another JS function to write out an Iframe into the div.. but instead of just writing the Iframe rewrites the whole page to JUST be an Iframe...
heres the code i'm using:
<script type="text/javascript">
function ClearDay()
{
document.getElementById('Popper').style.visibility='hidden';
}
function openday(x)
{
document.getElementById("Popper").style.visibility="visible";
ThePage(x);
alert(x);
}
</script>
</head>
<body>
<table id='Popper' onclick='ClearDay();'>
<tr>
<td>
<div id='PopDay'>
<script type="text/javascript">
function ThePage(z)
{
document.write("<iframe src='checkday.php");
document.write("?id="+z+"'");
document.write("width='500px' height='500px'></iframe>");
}
</script>
</div>
</td>
</tr>
</table>
thanks for the help everyone,
eff