Solved

resizing frames without reloading content..

Posted on 2003-12-07
2
450 Views
Last Modified: 2012-05-04
i have a project wherein i needed to use frames... but somewhere within the program, i need to dynamically adjust the sizes of frames...

is there a way to do this in mozilla and ie... without the content reloading... are they the same or should i detect and code a specific segment for each browser...

id put in 500... but i only have 245 points.

please help !
0
Comment
Question by:kdeocampo
2 Comments
 
LVL 2

Accepted Solution

by:
neongrau earned 245 total points
ID: 9964997
hi!

a nice way to do that (works both in Moz/NS6+) is this way:

redefine the cols / rows properties in the framesets.

example JavaScript:

parent.document.getElementsByTagName('frameset')[0].rows='200,*';
 or
parent.document.getElementsByTagName('frameset')[0].cols='250,*,300';

or an alternative way would be:
parent.document.getElementByTagName('frameset')[0].setAttribute('rows','200,*');

feel free to address the frame via your favorite addressing (by name or via getElementById...)

regards
~neongrau
0
 

Author Comment

by:kdeocampo
ID: 10006558
thanks man... hmm... i'm on my christmas vacation... sorry for the late "accept"... it's all good
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

After uninstalling Opera browser (for example ver. 10.63), your attempts to open a web page by clicking on a URL link may fail with an error message.  The error is "This operation has been canceled due to restrictions in effect on this computer. Ple…
I had to do a bit of research to find the answer to this question so I thought I'd share my results.  Due to our outdated mainframe systems, we need to downgrade IE9 to IE8 in order to stay compatible.  We also needed to downgrade Java.  In order to…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now