SV: [thelist] iframe properties

Marcus Andersson marcan at home.se
Thu Sep 11 13:20:10 CDT 2003


Are you accessing the iframe via the window collection? If you do:
don't. Access it the normal way through the document. I have tested in
IE, Mozilla and Opera and I get the style object as an object (not null)
in all three.

/Marcus

-----Ursprungligt meddelande-----
Från: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] För Tom Dell'Aringa
Skickat: den 11 september 2003 17:54
Till: thelist at lists.evolt.org
Ämne: [thelist] iframe properties


Hi folks,

I have a situation where I need to dynamically resize an iframe width.
However, I don't believe it is possible to do so. I've searched around
quite a bit with no luck but I wanted to check and see if anyone out
here knew of a way. Although width and height are attributes of the
iframe, there doesn't appear to be a way to script them - (although
Danny G. implies it can be done in his JS Bible - but doesn't explain
how...).

I actually have the width and height set as part of an inline style, but
the style object is not apparently reachable (iframe.style is null).

I've even used a real nice object inspector called JOE - which you can
check out for yourself at:

http://www.geocities.com/leiveriksson/home.htm (look at JOE)

It's one of the view reliable object editor/viewer type thingies I ever
used. There doesn't appear to be any scriptable property to change the
width..

So - anyone?

TIA

Tom



=====
http://www.pixelmech.com/ :: Web Development Services
http://www.DMXzone.com/ :: Premium Content Author / JavaScript / Every
Friday! http://www.maccaws.com/ :: Group Leader [Making A Commercial
Case for Adopting Web Standards]

"That's not art, that's just annoying." -- Squidward
-- 
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 





More information about the thelist mailing list