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. resize iframe nested in a page

resize iframe nested in a page

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptdotnethelpquestion
2 Posts 1 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.
  • O Offline
    O Offline
    oceanexplorer
    wrote on last edited by
    #1

    Hi, I currently have an iframe sat on a classin asp page, this iframe then displays my aspx pages as we are in the process of migration to .net framework. Currently in the classic asp page I have a javascript function that is called using the iframe onload function, this resizes the iframe according to the size of the content loaded in. It works a treat. However my issue is how can I call that function again from within in my aspx page, say if the page grows dynamically (i.e. options or validation messages are added). Currently the content gets pushed out the iframe, so I would need to call the resize function again. Any ideas would be greatly appreciated. Regards Paul Custance

    O 1 Reply Last reply
    0
    • O oceanexplorer

      Hi, I currently have an iframe sat on a classin asp page, this iframe then displays my aspx pages as we are in the process of migration to .net framework. Currently in the classic asp page I have a javascript function that is called using the iframe onload function, this resizes the iframe according to the size of the content loaded in. It works a treat. However my issue is how can I call that function again from within in my aspx page, say if the page grows dynamically (i.e. options or validation messages are added). Currently the content gets pushed out the iframe, so I would need to call the resize function again. Any ideas would be greatly appreciated. Regards Paul Custance

      O Offline
      O Offline
      oceanexplorer
      wrote on last edited by
      #2

      Ok I answered my own question, but for those who would like to know the solution: I called the function by "parent.parent.resize('iFrameId')" The parent.parent called the function in my classic asp page that holds the iframe. I then added the call to the OnResize event of the html tag on my aspx page. Hope that helps Paul C

      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