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. what method to use for pushing page updates to page/iframes?

what method to use for pushing page updates to page/iframes?

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-netdatabasehelp
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.
  • N Offline
    N Offline
    nakins
    wrote on last edited by
    #1

    I've been trying to create a simple method to update iframe content via a mix of asp.net and javascript. I can set a meta refresh, but that makes for a lot of traffic. I had created an aspx page that loaded into a hidden iframe (which did a meta refresh every 60 sec). This aspx would connect to a database and check for updated content, a "yes" or "no" in a table field. If "yes" then it would spit out some javascript code to reload the appropriate iFrame. But, there seems to be a couple of problem with this in that, one, the hidden aspx doesn't seem to load or execute but once. The other is that the javascript code isn't reloading the appropriate iframe. I would think this approach should work. I probably don't have it coded correctly. But, what I want to ask was if this method is a reasonable approach? Is there a better way of doing content updates without a lot of overhead code loading into the browser? Thanks

    C 1 Reply Last reply
    0
    • N nakins

      I've been trying to create a simple method to update iframe content via a mix of asp.net and javascript. I can set a meta refresh, but that makes for a lot of traffic. I had created an aspx page that loaded into a hidden iframe (which did a meta refresh every 60 sec). This aspx would connect to a database and check for updated content, a "yes" or "no" in a table field. If "yes" then it would spit out some javascript code to reload the appropriate iFrame. But, there seems to be a couple of problem with this in that, one, the hidden aspx doesn't seem to load or execute but once. The other is that the javascript code isn't reloading the appropriate iframe. I would think this approach should work. I probably don't have it coded correctly. But, what I want to ask was if this method is a reasonable approach? Is there a better way of doing content updates without a lot of overhead code loading into the browser? Thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      If you want the page to refresh itself, a js timer is the only way to do that. If only part of the page refreshes, you can use AJAX to make requests for that data.

      Christian Graus Driven to the arms of OSX by Vista.

      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