Solved

Calling a frames page from a frames page

Posted on 2000-03-30
2
151 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
2 Comments
 
LVL 1

Accepted Solution

by:
bassque earned 20 total points
Comment Utility
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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now