Solved

Calling a frames page from a frames page

Posted on 2000-03-30
2
155 Views
Last Modified: 2010-04-09
I  have a frames page.  The top frame is a navigation bar containing a dynamic drop-down menu using ASP.  The botton frame contains the external page called by the drop-down.  This works well in Explorer, but in Netscape only the header frame contents are displayed.  When a new item is chosen from the menu Netscape opens a new (blank) window.

Since I am using ASP it is a little tricky since I have to try supress the browser rewriting the header frame after the new page is called.  I use an "if" statement to see if the call is "new", and then write both the header and main frames.  If the header has already been written then the if statment (originally) wrote only the main frame.  Netscape did not like that so I changed the header to zero lines and allowed it to be rewritten.  Netscape no longer had a problem with this.

But now Netscape attempts to open the frame in a new window.  THe target frame is "_parent", but i havetried everything.

Help
0
Comment
Question by:russoffl
[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 Comments
 
LVL 1

Accepted Solution

by:
bassque earned 20 total points
ID: 2670360
if yout trying to do what I think you are.....I had a bit of trouble following your question....but to open a new frameset in the current browser window.....
then the target frame is _top
if you want to open a new set of frames in a current frame the target frame its _self
or within your href statement put target=_top or target=_self

hope this helped
0
 
LVL 1

Author Comment

by:russoffl
ID: 2670437
THanks for the reply.

Basically I have a navigation bar at the top of the page.  The navigation "choices" (from a drop down) call external sites in the lower, or main part of the pages. Since there are dozens of links I chose to use an access database and ASP to generate a dropdown menu instead of hyperlinks.

Since ASP is not aware of the frames I had a problem since it would rewrite the header leaving me with two on the page.  I ended up using an "if" statement to determine if the header had already been written.

Everything worked well (eventually) in Explorer 5.x, but Navigator opened a new window, and did not display any information even though I could see the browser downloading the page.

I did find a solution just about an hour ago - where I originally had the target as "_top" which seemed okay to Explorer, I changed  it to "main" and now  both browsers work okay.

I did try "_self", "_parent" - whatever I could use.

I have about 40 hours in this page - something I though would take 3 hours tops.

Thanks for the advice.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
html input 8 57
really easy css change help please 4 35
Selected in an option list 13 27
I'm a Human captcha checkbox 13 43
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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…

726 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