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