Solved

resizing frames without reloading content..

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I spend far too much time on the web keeping up with the news: politics, the environment, computer stuff, the Experts Exchange. It's never-ending. But many of the most informative web pages are overwhelmed with noise: scrolling banners, flashing tex…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
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.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

856 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