Solved

resizing frames without reloading content..

Posted on 2003-12-07
2
454 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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
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.
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…

763 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