Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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

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

![]() |
Open URLs in PHP w/out op...
|
Regarding query cache, an...
|

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