Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Changing Frameset properties using Java Script

Posted on 2003-03-12
3
Medium Priority
?
209 Views
Last Modified: 2012-06-27
We have a frame set that has two rows with frames.  The top frame will display a search result and when the user clicks on a item in the serach result the bottom frame will display that web page.

We would like to be able to change the size of the rows in the frame set when the user clicks on an entry in the search result.  When an entry is selected the top frame will shrink in size and the bottom frame will increase in size.

Can this be done in Java script and how ?  
0
Comment
Question by:mtackman
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
lil_puffball earned 400 total points
ID: 8121497
Yes, it can be done:

<a href="somehwere.htm" target="bottom_frame" onClick="window.parent.framesetname.rows='50,*'">

But you'll have to name your frameset, like so:

<frameset name="framesetname" rows="100,*">
<frame src="url.htm">
<frame src="url.htm">
</frame>

Let me know the results!
0
 

Author Comment

by:mtackman
ID: 8121544
It works great.  Thanks for your help, I was missing the name="" on the frameset, once I had that everything worked.
0
 
LVL 12

Expert Comment

by:lil_puffball
ID: 8122541
Your welcome, and thanks for the A! :)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…
Suggested Courses

564 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