View Full Version : Refreshing a page
10-30-2004, 01:12 AM
Ive made a page with some PHP in it and an iFrame.
Rather than telling you all about my site ill just ask for a fix to this problem:
When the user logs in (through the iframe menu), i need the whole page to refresh ONCE, to allow for the php code to detect the session and remove the "Login" link.
Could you please help me out and tell me how its doen?
10-30-2004, 05:52 AM
That should do the trick.
10-30-2004, 07:45 PM
Do i add that to the iFrame's page? (login_success.php)
and do i need any code around it?
I just put the location.reload() at the bottom of the php in the file "login_success.php" and it comes back with the error:
"Fatal error: Call to undefined function: reload()"
How do i fix this?
10-30-2004, 09:17 PM
You can use an event handler to call it, do you need it to refresh when you click something? or when?
10-30-2004, 10:05 PM
No, i just want the index.php to be refreshed when the login_success.php script is executed.
10-30-2004, 11:11 PM
Hmm, i'm not sure I understand correctly, some kind of event must trigger the location.reload(). When they login, put this in for the login button:
Or maybe you can post some code, and someone can help you out. But something has to trigger the reload, like an unload, load, click, ect. some kind of event.
10-30-2004, 11:32 PM
I kinda changed what u said and put it in login_success.php, but that just reloaded the iframe, constantly.
I need it to refresh the whole page, just once.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.