Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading a Frame 1

Status
Not open for further replies.

Steve101

Programmer
Mar 29, 2002
1,473
AU
I have two frames; a menu frame and a content frame. When I click on an item in the menu (which is an applet), it triggers a user defined function, which I'll call LoadNewContentFrame.

What I want to know is, what code to I need to have in this function, in order to get it to replace the ContentFrame with a new HTML page. I also want to pass a couple of arguments to the page.

I'm sure this is an easy question. Any help woulod be appreciated.
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)
 
I would do this with Javascript:

top.content_frame.location.href = 'newpage.asp?param1=val1&param2=val2';

Pass your parameters in the QueryString and just let your javascript change the page. This should work, if I understand your dillema correctly. ________________________________________
Michael C Flanakin
Indigo Web Systems
michael.flanakin@indigows.com
 
Thanks Michael. Much appreciated,
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top