Jump to content


Photo

Refresh frames / login issue


  • Please log in to reply
4 replies to this topic

#1 sdaniels

sdaniels
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 15 July 2006 - 07:54 PM

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,

#2 akitchin

akitchin
  • Staff Alumni
  • Advanced Member
  • 2,516 posts
  • LocationCalgary, AB, Canada

Posted 15 July 2006 - 08:02 PM

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.

#3 sdaniels

sdaniels
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 15 July 2006 - 08:18 PM

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.com

i 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.

#4 akitchin

akitchin
  • Staff Alumni
  • Advanced Member
  • 2,516 posts
  • LocationCalgary, AB, Canada

Posted 15 July 2006 - 08:21 PM

well if you simply want to refresh the main window after logging in, run the following javascript:

window.parent.location = window.parent.location;


#5 sdaniels

sdaniels
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 15 July 2006 - 08:39 PM

Thank you that worked perfectly!

this is the code I was using that jacked it all up.
parent.window.location.reload( false );




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users