Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Refresh IFRAME from another page?

Refresh IFRAME from another page?

Scheduled Pinned Locked Moved ASP.NET
javascriptdatabasequestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RadioButton
    wrote on last edited by
    #1

    Hello, Scenario: a1.aspx has two IFRAMES on the page. IFRAME1 diplays content and IFRAME2 is 1px by 1px and continously refreshes. The page src for IFRAME2 checks to see if there has been a change to a table in my DB. If the IFRAME2 page src detects there has been a change it calls a JavaScript function. I would like that JavaScript function to refresh the page src for IFRAME1. I have tried: window.location = 'blabla.aspx' window.frames['myIFRAME'].location = 'blabla.aspx' window.opener.location = 'blabla.aspx' Not getting the results I would like. Any ideas? Thank you. RB

    I 1 Reply Last reply
    0
    • R RadioButton

      Hello, Scenario: a1.aspx has two IFRAMES on the page. IFRAME1 diplays content and IFRAME2 is 1px by 1px and continously refreshes. The page src for IFRAME2 checks to see if there has been a change to a table in my DB. If the IFRAME2 page src detects there has been a change it calls a JavaScript function. I would like that JavaScript function to refresh the page src for IFRAME1. I have tried: window.location = 'blabla.aspx' window.frames['myIFRAME'].location = 'blabla.aspx' window.opener.location = 'blabla.aspx' Not getting the results I would like. Any ideas? Thank you. RB

      I Offline
      I Offline
      Ista
      wrote on last edited by
      #2

      javascript can set a timer. I dont remember, because I find other ways to do these things, but its like window.setTimer and window.setTimeout that will do your page refresh. This will also force a postback. Maybe you should keep a flag in the session and the refresh page can check it in the postback and query if necessary 1 line of code equals many bugs. So don't write any!! -- modified at 15:47 Friday 30th December, 2005

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups