Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2005
    Posts
    153
    Thanks
    26
    Thanked 0 Times in 0 Posts

    Jquery/Javascript Iframe Refesh

    Hi, I'm using FF3.5. I have a page inside an Iframe. Currently to get it to "refresh" I'm using this code.

    Code:
    window.frames["nameOfFrame"].location.href = window.frames["nameOfFrame"].location.href
    This works ok, except I need the page to "resend" the data or else It just goes blank. Is there a way to refresh Iframes and get the data resent?

    Also if I right click>This Frame>Open Frame in New Tab. This doesn't resend it either [This is a much smaller issue though]

    How can I refresh and resend this frames information?

    IE Code not needed

  • #2
    Senior Coder ckeyrouz's Avatar
    Join Date
    Jun 2009
    Location
    Montreal, Canada
    Posts
    1,044
    Thanks
    5
    Thanked 179 Times in 179 Posts
    try this:
    Code:
    window.frames["nameOfFrame"].location.reload();

  • Users who have thanked ckeyrouz for this post:

    questionable (08-14-2009)

  • #3
    Regular Coder
    Join Date
    Jun 2005
    Posts
    153
    Thanks
    26
    Thanked 0 Times in 0 Posts

    Thanks

    Works like a charm! Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •