Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 4th, 2004, 06:40 AM
Authorized User
 
Join Date: Dec 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sasidhar79
Default HTML Frames

Hello,

I have a problem with my ASP page, such as I am unable to load to a No-Frames page from a page with frames. The scenario is as follows..

I have an asp page with top-frame hosting a menu bar, and the bottom frame loads a different page/url. When i click on any menu on the top frame , the new page should load in a No-Frames page , with the same menu bar as the header and a different body.

Currently , when i click on any link in the menu bar frame , that respective linked page is loading within the top frame which is not desired.

please help me as soon as possible.

regards
Sasidhar

thanks,
Sasidhar
__________________
thanks,
Sasidhar
 
Old May 4th, 2004, 09:24 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

I guess u havent set ur target?!
see target in <a> tag.

HTH.

Always:),
Hovik Melkomian.
 
Old May 4th, 2004, 12:26 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Like melvik suggested, use this:

<a target=_top href=whatever.asp>link</a>

A JavaScript alternative is this:

top.window.location='whatever.asp';

'_top' and 'top' refer to the frameset, or parent.

HTH,

Snib

<><





Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding Frames (HTML) rupen Javascript How-To 4 June 1st, 2005 03:50 AM
regarding frames in html preethi.c Beginning VB 6 1 March 9th, 2005 04:52 PM
pass html:errors to one of the frames srivalli9 BOOK: Professional Jakarta Struts 1 May 18th, 2004 12:53 PM
Frames tgopal Javascript 2 August 20th, 2003 07:44 AM
Using HTML Frames in J2EE architecture voy7 J2EE 1 June 25th, 2003 05:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.