Closed Thread Icon

Preserved Topic: resizing iFrames? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18415" title="Pages that link to Preserved Topic: resizing iFrames? (Page 1 of 1)" rel="nofollow" >Preserved Topic: resizing iFrames? <span class="small">(Page 1 of 1)</span>\

 
hecster2k
Nervous Wreck (II) Inmate

From: sj, ca, usa
Insane since: Feb 2002

posted posted 07-31-2002 20:29

ok, i'm trying to resize an iframe. originally it's 200px wide, and i want to click on a button and have the onclick do a resizeIframe() function. problem is, it doesn't seem to do anything when you say:

top.frames['myframe'].width = 500;

or

top.myframe.width = 500;

what am i doing wrong? or does it just not work this way? or is it just not possible to resize an iframe dynamically? thanks gurus...


"there has to be a solution."

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-31-2002 20:43

If the frame has an id attribute (id="myid") you can do it like this:

document.getElementById('myid').style.width='500px';

hecster2k
Nervous Wreck (II) Inmate

From: sj, ca, usa
Insane since: Feb 2002

posted posted 07-31-2002 20:57

thanks Slime! that worked like a charm. i was banging my head all morning on that one.

"there has to be a solution."

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 07-31-2002 21:50

hehe, that's funny. I was just getting ready to post that same thing and I got called into a meeting. Got back and Slime already did it.

Glad that I was right and that Slime could help

Later,
C:\


~Binary is best~

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-01-2002 03:50

See, when I realized you might finish first, I quickly called up your boss and said "quick, get this guy into a meeting"...

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 08-01-2002 14:57

yeah, damnit... can't have people stealing your thunder...


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 08-01-2002 16:19

steal my thunder. . . ??? I don't care really. Just glad that the problem was solved. I just thought I'd share what happened. That's all. No big deal. Found it funny. Know what I mean ??

Later,
C:\


~Binary is best~

« BackwardsOnwards »

Show Forum Drop Down Menu