Computing.Net > Forums > Web Development > Link to Frames page

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Link to Frames page

Reply to Message Icon

Name: usaevo7
Date: March 24, 2004 at 09:58:34 Pacific
OS: Internet Explorer
CPU/Ram: ---
Comment:

Im in need of code that will allow me to link from a non-frame page to a framed page while loading a specific "mainframe" page. I would really appreciate some assistance with this, becuase it should be possible I just cant figure it out. Thanks Jason
PS- The website im working on is htttp://www.advancedlabeling.com



Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: March 24, 2004 at 18:53:53 Pacific
Reply:

This is asked reasonably often...There is no super simple solution, but the javascript isn't obscenely complex.

http://www.computing.net/webdevel/wwwboard/forum/144.html

-SN


0

Response Number 2
Name: wiredsj
Date: April 1, 2004 at 14:02:31 Pacific
Reply:

Jason,

It's quite simple. Make extra frameset pages for any variations of the loads you want to target. A quick look at your site shows me that you want to have each product load when clicked from the front page. Right now whether you click on "thermal printers" or "coders" you end up at the same "products.htm" page. For each product you will need 2 html files. One will be the content of the product and the companion file will be the frameset which loads that content. Basically take your existing "products.htm" page and replace "productbottom.htm" with "thermalprinters.htm" or "coders.htm" for each product and name the framesets "thermalprinters-f.htm" and "coders-f.htm" and target that file from your front page. Then when you got to "coders-f.htm" it will load the frameset you've predetermined but with the appropriate content in the main frame. (* You don't have to use the "-f" for naming but i find it handy to keep them in pairs with the "-f" meaning it's a frameset only and not content.

I did notice a few other problems though. I use Mozilla's FireFox as my main browser but with it your top frame is cut off. So i tried the same link with IE and the top frame looks great but the main frame doesn't display?

You've got to many lines of code for a simple 2-frame set and you should never use the <body> tags in framesets. Also you've started 3 framesets where only one is necessary yet you've only terminated 2 of them.

I don't know if this code will display in this forum but this would achieve what you want with less lines:

=========================================
<html>
<head>
<title>- Advanced Labeling -</title>
</head>

<frameset rows="129,*" framespacing="0" frameborder="NO" border="0">

<frame src="productstop.htm" name="topFrame" scrolling="NO" noresize>

<frame src="productbottom.htm" name="mainFrame">
</frameset>

<noframes>
No one will see this text unless their browser doesn't display frames so if you don't send these people to a non-frame version you should send them to your frame with your toolbar with all your links in it.
</noframes>

</html>
=========================================

good luck,
wired


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Open URLs in PHP w/out op... Regarding query cache, an...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Link to Frames page

Links to Other Pages www.computing.net/answers/webdevel/links-to-other-pages/1554.html

Frame - Page Title www.computing.net/answers/webdevel/frame-page-title/215.html

linking to spot on page www.computing.net/answers/webdevel/linking-to-spot-on-page/2545.html