Solved

resizing frames without reloading content..

Posted on 2003-12-07
2
451 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

867 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

20 Experts available now in Live!

Get 1:1 Help Now