[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Link to subpage of site w/frames

Posted on 2004-10-27
Medium Priority
Last Modified: 2012-06-27
Is is possible to link to a subpage on a site using frames? They are using 2 frames, one for the content and one for the navigation.

Obviously if I link to the subpage I get only the subpage and no navigation. Is there a way around this problem.

Could I add a little javascript to url to tell the browser to follow one of the navigation links? Like - <a href="http://www.website.com/+javascript:location.href='scholarships.html'>Link</a>
Question by:evco
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
  • 2
LVL 10

Accepted Solution

frugle earned 1000 total points
ID: 12427741
There isn't an easy way to link directly to a content page and maintain the frameset when you land, that is what is completely evil about frames.

You can recreate the frameset locally and link to that - i.e. have a page on your own server (call it linked.htm)

<frame src="http://www.domain.com/navigation.htm">
<frame src="http://www.domain.com/content_page.htm">

obviously setting the frame names, positions, sizes etc.

OR rely on the target page using javascript to detect it has been divorced from its frameset and recreate it with javascript before reloading itself (nasty)

The main thing to do is to complain to the site owner that you want to link to their content but cannot because they use frames.  They may want you to ONLY link directly to their homepage, which puts a downer on things anyway.


Expert Comment

ID: 12427742
Yes, you can link to the subpage.  Right-click on the page and get the name of the page and link to that address.  If they are using the other frame for navigation, I'm not sure what else you could do unless you create your own frame that contains your version of navigation.

Author Comment

ID: 12427917
I know...damn frames.

Mike - I started using your idea but then discovered that the site is using an iframe to load subpages...I wasn't going to post the url but it might help to see it - http://www.stevens-tech.edu/dtd/

I'm looking to link from another site to the Delt Scholarships page.

Any ideas.


Expert Comment

ID: 12429595
Even with the page using an iframe, you can link directly to the subpage.  In this case, put http://www.stevens-tech.edu/dtd/dscholarships.htm in your main frame and then recreate some navigation of your own in another frame.  In this case, it isn't as easy as using their navigation.html (since their navigation isn't in a frame) or something but you could copy their code and images and rework it for your own use.

Author Comment

ID: 12434387
Ok, thanks for the workaround.

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

656 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