/    Sign up×
Community /Pin to ProfileBookmark

Need to load page in a frame when accessed directly

I am working on re-designing wilderness-art.com. We like the basic layout – header on top / menu on the left etc. I have a lot of changes that have not been uploaded yet, but the concept will stay the same.

If a user finds the page ‘musicmain.htm’ on a search engine they would load only that page if they follow the link.

I would like to add code so that the page would load in the frame as it does when you navigate from the home page.

I have found a script that would load the home page, and therefore the frame structure, but I cannot figgure out how to load the page requested in the ‘article’ frame. (the bottom two frames are named ‘menu’ and ‘article’)

Any help would be appreciated
thanks

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@the_treeApr 22.2005 — I'm sure there's some type of meta info that'll discourage search engines from linking directly to such pages, you might want to google that. As far as accessability is concerned, each frame should make sense on it's own anyway.
Copy linkTweet thisAlerts:
@TheBearMayApr 22.2005 — This should be close:<script type="text/javascript">
if (document.location.href==top.document.location.href) document.location.href="http://framepageURL";
</script>
Copy linkTweet thisAlerts:
@rhrfordzauthorApr 22.2005 — The pages should be listed in search engines and they do make sense as a stand alone page, and these pages are really the whole purpose behind the website. They do not include the menu for navigation, just the pertinant information for that topic. The idea is to load the frameset with the requested page in the correct frame

Using code such as the example can load any named page, but if I point it to index.htm - that is what loads ( title on top, menu on left and 'home' page in main window.

What we want to happen is to load the page the searcher is trying to get to within the framework as it would be if the user navigated from 'index.htm' through the menus.
×

Success!

Help @rhrfordz spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...