PDA

View Full Version : Just a resize



Tabo
06-21-2007, 09:57 PM
1) Script Title: DHTML Window widget (v1.03)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/

3) Describe problem: I have been looking for ages how to resize an iframe(which can be resized by resizing a div and not the frame) when i came accross this.

I've tried for ages to edit the script just so i can use the resize feature with no luck

Can someone please assist me in doing this?

I need the script to work like this:

<div id="something">
<iframe width="100%" height="100%">
</iframe>
<div id="resize>DRAG THIS DOWN TO INCREASE THE SIZE OF THE IFRAME</div>
</div>
note: i only want the height to be changed.

THANKS A LOT

Veronica
06-21-2007, 10:57 PM
Do you mean a way a viewer of the page can re-size an iframe? Why not just do it with a link that re-sizes the iframe itself? You would be able to do that with javascript

Tabo
06-22-2007, 07:07 AM
Yes, however it is hard to explain why it needs to drag down. Its to do with what the page is. I can do the link one but this way would be a lot better.

ddadmin
06-23-2007, 12:58 AM
Hi Tabo:
I understand what you're asking, but there's no easy way to convert the DHTML window script to just resize DIVs and do nothing else. You may want to do a search on Google for div resize using Javascript (http://www.google.com/search?q=div+resize+using+javascript&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGGL_enCA177CA218).