Forum Moderators: open

Message Too Old, No Replies

Silly Frames Question

How to reload one frame from another?

         

RossWal

9:06 pm on Oct 4, 2002 (gmt 0)

10+ Year Member



Having successfully avoided frames almost completely until now, I have a requirement that I believe calls for their use. I've been asked for a web page where the bottom contains a scrollable grid of search results. Upon clicking a link presented on a row in the grid, the controls in the top section (also scrollable) fill in with the details from the row selected in the bottom. The border separating the top and bottom must be moveable, allowing the user to expand one section while the other contracts.

So, I think this calls for frames. Other suggestions are most welcome.

Assuming frames, I've contemplated bringing all the required data down to the client along with the search results for the bottom frame, so that the top frame can be loaded without a trip back to the server. But I'm leaning against that. So what I think I need to do, is reload the top frame, passing the key to the data in a querystring. The question I'm posing then (and what a long winded way to get there) is what does the href look like that will invoke a reload of the top frame?

Many thanks for any tips!

tedster

12:38 am on Oct 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can address a particular frame by first giving it an ID or name attribute ("name" is deprecated) in the frameset document. Then use the target attribute in the frame where the link lives:

<a href="url.html?key=foo" target="frame_name">Link</a>

RossWal

6:57 pm on Oct 7, 2002 (gmt 0)

10+ Year Member



Perfecto!