How to refresh parent Iframe
Normally this would be pretty straight forward, but I've tried a bunch of examples and none of them work.
I am attempting to refresh a menu I have in an iframe. I will explain.
I have a index.php page with 3 iframes in it (this is the parent). The top frame is for the site logo, the left frame is the menu (I call it menuframe) and the frame beside that is for the page content (contentframe).
I have the menu with various options, when the user logs in it should refresh and show some addition options (logout, admin area, etc).
The login page appears in the contentframe, once the user logins I want the menuframe to refresh to list these new admin options. I know my php session is working fine because if I manually refresh the menuframe it shows the items.
document.getElementById('#menuframe').src = document.getElementById('#menuframe').src
and a few other variations.
Any idea how I can get this to work?
Thanks so much.
Ignore the # characters in the Elementids, that was a typo.
Before anything else, I have a well grounded question: As long as you are using PHP files, why do you use frames? Why not PHP includes?
Frames and framesets are obsolete, deprecated (in HTML and XHTML) or even not accepted (in HTML5).
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)