Parent reload: if the following number changes then the parent page (this yellow page) has reloaded:
The goal of this pattern is to obtain a reload of the iframe red content and only a reload of the yellow parent
Description:
<?php Header ('Location: ifrmBoxLogin.php?reload=true'); ?>
In ifrmBoxLogin.php: if param "reload == 'true' then print a script thar reload the parent page:
<?php if(isset($_GET['reload'])) $reload=$_GET['reload']; if($reload=='true'){ ?> <script type="text/javascript"> top.location.reload(true); </script> <?php } ?> <script type="text/javascript"> alert('window.location.search = '+window.location.search); </script> </head> <body style="background-color:red;"> <h1>Iframe content</h1> <a href="back.php">Submit this then come back here and reload the yellow parent page</a> </body></html>
the desired result: after iframe content will reload, it would reload the parent yellow page. This work fine in all browsers except firefox latest version.
This pattern works fine in all browsers except Mozilla Firefox (reload cause a infinite loop)
It seem that firefox ignore the src="ifrmBoxLogin.php?reload=false" iframe param in the parent yellow page (see the alert: always reload is equal to 'true' only in firefox)
Please note that in very older Firefox version (before 2.0 maybe - i don't remember sorry) this script works fine
(sorry for my bad english)