Solved

Link to subpage of site w/frames

Posted on 2004-10-27
310 Views
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>
0
Question by:evco
    5 Comments
     
    LVL 10

    Accepted Solution

    by:
    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)

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

    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.

    Mike
    0
     
    LVL 3

    Expert Comment

    by:nan1217
    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.
    0
     

    Author Comment

    by:evco
    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.

    0
     
    LVL 3

    Expert Comment

    by:nan1217
    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.
    0
     

    Author Comment

    by:evco
    Ok, thanks for the workaround.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Are you into PHP development and curious how you can make your life easier when publishing your website? Do you sometimes worry you might forget to remove debug lines? Or you spend unnecessary time to double check you haven't accidentally uploaded '…
    Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    This video teaches users how to migrate an existing Wordpress website to a new domain.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    856 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

    15 Experts available now in Live!

    Get 1:1 Help Now