sdaniels Posted July 15, 2006 Share Posted July 15, 2006 I have an Iframe in a table, within the iframe is a form for user name and password, I want it so that when they hit submit it will refreash the enire page and not just the iframe. any suggestions?I had a snippet of javascript code, but in firefox it would kick an error about postdata being resubmitted, Id like to find a way with no errors if possible.. thanks, Quote Link to comment https://forums.phpfreaks.com/topic/14695-refresh-frames-login-issue/ Share on other sites More sharing options...
akitchin Posted July 15, 2006 Share Posted July 15, 2006 depending on how your frames are setup, you should be able to use the target="" attribute on form, and target the parent of the iframe. Quote Link to comment https://forums.phpfreaks.com/topic/14695-refresh-frames-login-issue/#findComment-58631 Share on other sites More sharing options...
sdaniels Posted July 15, 2006 Author Share Posted July 15, 2006 Im a novice, Could you give me an example?my page is set up as a large table with an iframe in the center, the iframe has the login form. you can see what i mean at http://www.shaundaniels.comi need it to refresh the main page because it contains dynamic links based on the users login. the probelm i have now is that when i log in it will not show the new links untill the page is refreshed. Quote Link to comment https://forums.phpfreaks.com/topic/14695-refresh-frames-login-issue/#findComment-58637 Share on other sites More sharing options...
akitchin Posted July 15, 2006 Share Posted July 15, 2006 well if you simply want to refresh the main window after logging in, run the following javascript:[code]window.parent.location = window.parent.location;[/code] Quote Link to comment https://forums.phpfreaks.com/topic/14695-refresh-frames-login-issue/#findComment-58639 Share on other sites More sharing options...
sdaniels Posted July 15, 2006 Author Share Posted July 15, 2006 Thank you that worked perfectly!this is the code I was using that jacked it all up.parent.window.location.reload( false ); Quote Link to comment https://forums.phpfreaks.com/topic/14695-refresh-frames-login-issue/#findComment-58648 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.