Solved

Frame Resize with Javascript 1.2

Posted on 1998-08-12
4
433 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 100 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
what should i learn? javascript or typescript? 3 57
Glitching Slide Show 19 36
Javascript: Mouseup doesn't follow mousedown 13 57
Scroll 5 news at a time using vticker 2 36
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

736 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