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. Resizeable iframe

Resizeable iframe

Scheduled Pinned Locked Moved Web Development
question
5 Posts 3 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.
  • J Offline
    J Offline
    Jim Taylor
    wrote on last edited by
    #1

    Hello does anybody have any ideas on how I could put an iframe on the page and allow the user to resize it by dragging an edge (only one edge) just like a normal frame? Thanks in advance Jim. Jim

    A T 2 Replies Last reply
    0
    • J Jim Taylor

      Hello does anybody have any ideas on how I could put an iframe on the page and allow the user to resize it by dragging an edge (only one edge) just like a normal frame? Thanks in advance Jim. Jim

      A Offline
      A Offline
      allia
      wrote on last edited by
      #2

      This is out of the blue but have you considered putting an IFrame inside a frame? set the iframe to width=100% and have the frame as your border... I don't know if that will work or even if you want to use frames..

      J 1 Reply Last reply
      0
      • J Jim Taylor

        Hello does anybody have any ideas on how I could put an iframe on the page and allow the user to resize it by dragging an edge (only one edge) just like a normal frame? Thanks in advance Jim. Jim

        T Offline
        T Offline
        Tomas Petricek
        wrote on last edited by
        #3

        I think, that it could be possible to do this with JavaScript (but only on newer browsers...) If you have IFRAME surround with four DIVs you can write script for resizing IFRAME using borders created by this four DIV elements... :~

        Tomáš Petříček  :baaaa!: Asp.Net Popup control www.eeeksoft.net

        J 1 Reply Last reply
        0
        • A allia

          This is out of the blue but have you considered putting an IFrame inside a frame? set the iframe to width=100% and have the frame as your border... I don't know if that will work or even if you want to use frames..

          J Offline
          J Offline
          Jim Taylor
          wrote on last edited by
          #4

          Thanks, for your reply. Unfortunately I cant use frames. I am using the iframe to display another page when a user clicks a link. I am showing the iframe when the link is displayed and hiding it when the user clicks a close button so its all inline to the page. Jim

          1 Reply Last reply
          0
          • T Tomas Petricek

            I think, that it could be possible to do this with JavaScript (but only on newer browsers...) If you have IFRAME surround with four DIVs you can write script for resizing IFRAME using borders created by this four DIV elements... :~

            Tomáš Petříček  :baaaa!: Asp.Net Popup control www.eeeksoft.net

            J Offline
            J Offline
            Jim Taylor
            wrote on last edited by
            #5

            Thanks for your reply. I have started to think along those lines now. Fortunately the website is on an intranet where internet explorer 6 is standard so I can use the latest scripting dom. My idea now is to have a control such as a div that the user can drag and have a dynamic property on the iframe that relates to the position of the div. Theres a usefull behaviour on Jon Udells site for moving and resizing html elements that will provide a usefull starter for me Andrew Mayo's resize.htc, a "behavior" for moving and resizing HTML elements[^]. p.s. I liked the popup article and may well be using it in future projects (once I've converted it to VB.NET) :). Jim

            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