?
Solved

Frame Resize with Javascript 1.2

Posted on 1998-08-12
4
Medium Priority
?
446 Views
Last Modified: 2012-05-04
Is it possible to resize frames using an onClick event?  I am using Javascript 1.2, and I want to use a button on a main frame to resize another frame.  I have three frames, a top frame and two bottom frames, left and right.  I want to use a button on the top frame to minimize the left frame and maximize the right frame.  Is this possible?
0
Comment
Question by:justinkerns
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Author Comment

by:justinkerns
ID: 1268190
Edited text of question
0
 
LVL 2

Accepted Solution

by:
hboys earned 300 total points
ID: 1268191
The easiest way to achieve this would be to have 2 seperate framesets.

The main frameset having a top and a bottom frame. The top frame would have as its default opening page the same as you would put in your existing setup i.e. the 'main page' with the buttons on it.

The bottom frame (instead of having 2 frames at the bottom would have only 1 at this time) would have as its default page another frameset with 2 frames, a left and a right frame. This frameset would have as its default pages the bottom left and bottom right pages that you mentioned in your original setup.

When you want to minimize one frame and maximize the other you would simply replace the frameset in the bottom frame of the main frameset with the page that you whish maximized and vise versa.

The setup for this would be:-

Frameset1.html(main frameset) contains 2 frames top(main page) & bottom.
The bottom frame would contain Frameset2.html.

Frameset2.html would contain 2 frames left and right. the left frame would contain the page that you would have in the bottom left frame in your old setup. The right would contain the bottom right.

To minimize the "bottom left" frame you would:
replace the page in frameset1.html's bottom frame, from frameset2.html to the page that you have in frameset2.htmls' left frame.

Hope all this makes sense! if not post a  comment.

Cheers,

H.
0
 
LVL 2

Expert Comment

by:hboys
ID: 1268192
Has this Worked for you?
0
 

Author Comment

by:justinkerns
ID: 1268193
I believe this will work.  However, I was looking at the rest of the page, to make sure that the rest of the scripting is not affected by changing the frames.

I was trying to use outerwidth, etc. to change the existing frames, but couldn't get that to work.

Thanks for the help.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

752 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