Help With Iframe Refresh

liunx

Guest
This might be an easy one, but for some reason I can't figure out how to do it. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wallbash.gif" style="vertical-align:middle" emoid=":wallbash:" border="0" alt="wallbash.gif" /><br /><br />I am developing a web based application in PHP and MySQL. On one of the pages I want to have an iframe to display some information in a grid. I need to be able give the user the ability to add and change information displayed in the iframe by utilizing a pop-up window (I will be using Java of course to handle the pop-up). When the user closes the pop-up window, I need to refresh the iframe to display the changes.<br /><br />How do I get the iframe to refresh when the pop-up window is closed?<br /><br />On a side note, is there anyway to force the pop-up window to be always on top of the parent window similar to the way a Java alert is?<!--content-->
I figured out how to refresh an iframe when you close a pop-up window. I know it was easy, just had to stop and think about it. I just had to put the following in the pop-up window.<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><form><br />      <input type="button" onClick="opener.location.reload(); self.close()" value="Close"><br />    </form><!--c2--></div><!--ec2--><br />Now if I can only figure how to keep the pop-up always on top.<!--content-->
I wonder if <br /><b><!--fonto:Courier New--><span style="font-family:Courier New"><!--/fonto--><body onblur="self.focus();"> <!--fontc--></span><!--/fontc--></b><br />will work<!--content-->
<!--quoteo(post=192111:date=Oct 12 2006, 01:48 PM:name=TCH-Don)--><div class='quotetop'>QUOTE(TCH-Don @ Oct 12 2006, 01:48 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=192111"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->I wonder if <br /><b><!--fonto:Courier New--><span style="font-family:Courier New"><!--/fonto--><body onblur="self.focus();"> <!--fontc--></span><!--/fontc--></b><br />will work<!--QuoteEnd--></div><!--QuoteEEnd--><br />I just tried this and was going to post something to find some one already posted something.<br /><br />It seems to work with IE fine. With Firefox, it only works the first time you try to change windows. After that, it doesn't work.<!--content-->
I found another problem with<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><body onblur="self.focus();"><!--c2--></div><!--ec2-->If you have a form in the pop-up window, you can't change anything.<br /><br />It looks like I found a solution that should work with both IE and Firefox. I found it <a href="http://www.getyourwebsitehere.com/jswb/modwin/modalwinparent.html" target="_blank">here</a>. I still have to try everything out on my application, but judging from the examples on the page it should work.<!--content-->
Hmmm, I would look at doing this via AJAX possibably?<br /><br />E.g. try editing your own post using the quick edit method. This is essientially what your trying to do.<br /><br />JimE<!--content-->
 
Back
Top