Closed Thread Icon

Preserved Topic: can Frames be resized on runtime? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18149" title="Pages that link to Preserved Topic: can Frames be resized on runtime? (Page 1 of 1)" rel="nofollow" >Preserved Topic: can Frames be resized on runtime? <span class="small">(Page 1 of 1)</span>\

 
lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 08-19-2001 19:15

Hello.

I never tried it, but i'm asking can frames be resized on runtime by the JavaScript code?

code:
<frameset rows="50%,*" >
<frame src="file1.htm" name="frame1">
<frame src="file2.htm" name="frame2">
</frameset>


like changing this 50% to 100px instead?

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 08-19-2001 21:27

This will work in IE5.5+ and Mozilla/NN6:

<FRAMESET ROWS="50%,*" ID="maxFrameset">
    <FRAME SRC="file1.html" NAME="frame1">
    <FRAME SRC="file2.html" NAME="frame2">
</FRAMESET>

And use this JS code to resize frames:

parent.document.getElementById('maxFrameset').setAttribute('rows', '100, *');

You can call it from file1.html or file2.html, for example...

BTW Resizing frames can also be done in older browsers, but it is a little bit more complicated (you have to reload pages).



[This message has been edited by mr.maX (edited 08-19-2001).]

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 08-19-2001 23:09

Thanks mr. Max.

Now as for Older browsers and resizing frames...

How do you mean i have to reload the page?
you mean like I pass the new size as a parameter and reload the page. then the page will read the parameter (location.search) and write the frameset tag dynamically based on the param?

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 08-20-2001 11:17

You can either pass parameters through query string (like you said) or use another frameset as container like this: http://www.max.co.yu/ozone/max_frames.html

« BackwardsOnwards »

Show Forum Drop Down Menu