?
Solved

Calling a frames page from a frames page

Posted on 2000-03-30
2
Medium Priority
?
158 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 60 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Suggested Courses

741 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