efficacious Posted September 2, 2008 Share Posted September 2, 2008 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 Quote Link to comment Share on other sites More sharing options...
efficacious Posted September 2, 2008 Author Share Posted September 2, 2008 nvrmind i figured out a better way to do this Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.