[Javascript] Resizing a frame

Jaime Iniesta jaime at alazan.com
Tue Mar 11 10:52:02 CST 2003


There is a more complete answer to this question here:

http://developer.irt.org/script/787.htm

Jaime

-----Mensaje original-----
De: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu] En
nombre de Mark
Enviado el: martes, 11 de marzo de 2003 5:49
Para: javascript at LaTech.edu
Asunto: RE: [Javascript] Resizing a frame

Hmm... doesn't seem to do it here. I'm sure I'm doing something
incredibly stupid.... Here's what I have to test it:

parent: 
main.html
<frameset cols="300,*">
<frame name="f1" src="f1.html">
<frame name="f2" src="f2.html">
</frameset>

f1.html
<body>
<input type="button" name="b1" value="B1"
onClick="javascript:parent.f1.cols = 50;">
<br>
<input type="button" name="b2" value="B2"
onClick="javascript:parent.f1.cols = 200;">
</body>

f2.html is just a text test page.

Can someone take pity?

Thanks.

--- Andrew Dunn <Andrew at d2k.com.au> wrote:
> Quite easy really:
> 
> parent.FRAMENAME.cols = 50;
>  
>  
> -----Original Message-----
> From: Mark [mailto:mark_weinstock at yahoo.com] 
> Sent: Tuesday, 11 March 2003 7:48 AM
> To: javascript at LaTech.edu
> 
> I'm a JS newbie, and haven't been able to find anything via google
> or
> the easy-to-find JS referencs.
> 
> Can someone point me to a reference whereby I could resize a frame
> dynamically? I can't seem to get anything to work quite the way I
> expect. I can resize the entire window, but not just one frame. The
> idea
> is to be able to "minimize" then "restore" a menu frame.
> 
> Thanks for any suggestions.
> 
> Mark
> 
> =====
> Mark Weinstock
> mark_weinstock at yahoo.com
> ***************************************
> You can't demand something as a "right" unless you are willing to
> fight
> to death to defend everyone else's right to the same thing.
> ***************************************
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript


=====
Mark Weinstock
mark_weinstock at yahoo.com
***************************************
You can't demand something as a "right" unless you are willing to fight to
death to defend everyone else's right to the same thing.
***************************************

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list