From a top page I load a php in an iframe. That php tries to reload a div in the main page with this code.
<script type="text/javascript">
$(document).ready(function() {
$('#tnav').load('loadtree.php');
});
</script>
The top page is called favorites.php. It has an iframe with src=addpages.php. That addpages calls savepages.php. That savepages.php writes the script above. So you have favorites.php -> addpages.php -> savepages.php. The reload for the div which is in the top page (favorites.php) does not happen. The code does appear in the view source for the savepages.php but it appears in the iframe source.
How do I get the reload to happen in the favorites.php? It seems that for the reload to happen the reload script should be appended to one of the other php files. How do I do that? Thanks.