Print Page | Close Window

How to put navigation in the topframe?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=9020
Printed Date: 07 April 2026 at 2:52pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How to put navigation in the topframe?
Posted By: thecount
Subject: How to put navigation in the topframe?
Date Posted: 18 January 2004 at 2:56pm

Hi There,

Maybe this question is asked before, but i can't find the satisfying answer in a search on the forum's.

I want to put the /include/headers.asp and the /include navigation_buttons_inc.asp in my topframe. This because i want to have a constant toolbar on the top of the site.
I know that the header must be updated sometimes, from some other files.
Can someone tell me how i can do this? When i have to update the navigation, and in wich files i have to put some extra code?
I want to use some function therefor.

A job aid description would be great, but any other suggestion or sample(code)is welkom.

Thanks in advance




Replies:
Posted By: Semikolon
Date Posted: 18 January 2004 at 3:08pm

you have to change code in all files to do this.. so its not recommended..

its much better to include the files in all your files.. but then you also have to include common.asp on top



Posted By: thecount
Date Posted: 18 January 2004 at 3:18pm

Hi thnx for your reply,

I already did many changes (adds ) in the files. So i don't mind to change a lot.

I don't know what you mean to include the files in all your files.
You mean to include the three files in my top.asp (topframe source)
And what then?? If something changes on the mainframe and i have to update the topframe. I don't know i wich files off the forum that happens. I was hopping someone else did the job before, because it is a lot of reading source to find al relations.

 



Posted By: Semikolon
Date Posted: 18 January 2004 at 3:25pm
to update the content in another frame you have to use a client side scripting language like javascript or client vb script.. i dont know how to do it, but i know that its much easier if you dont use frames.. frames sucks


Posted By: thecount
Date Posted: 18 January 2004 at 3:34pm

Originally posted by AnthraX AnthraX wrote:

to update the content in another frame you have to use a client side scripting language like javascript or client vb script.. i dont know how to do it, but i know that its much easier if you dont use frames.. frames sucks

For younger people frames sucks. The public of our site is from 20 to 90 years old. Most off the people above 35 don't like scrolling the whole page. If they half past the site and they want to navigate, then they have to go to the top again to push some buttons.
Most of the writers say's frames suck, but that is because they can't write good code to do the job. I'am an old fashion developer, and can write in many languages, but don't want to invent the wheel every time again. 



Posted By: thecount
Date Posted: 18 January 2004 at 4:11pm

Maybe i can put something like in the header.asp

<% Response.Write"<script>top.location='newpage.asp'</ script>"%>

or if this is not working because of client side problems
<%
  url = "http://domain.com/"
  response.write("<script>" & vbCrLf)
  response.write("targetframename.location.replace ('" & url & "');" & vbCrLf)
  response.write("</script>")%>
 



Posted By: dpyers
Date Posted: 18 January 2004 at 6:53pm

Cdate - posted a reply to the wron topic. Sorry for the confusion.



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: dpyers
Date Posted: 18 January 2004 at 7:11pm

Originally posted by thecount thecount wrote:

Most of the writers say's frames suck, but that is because they can't write good code to do the job. I'am an old fashion developer, and can write in many languages, but don't want to invent the wheel every time again. 

Actually it takes very little code to use frames. Takes more code to work the navigation without them.

The only issue I have with frames is that Search Engines ignore the frame context and provide links directly to the pages within the frameset. When someone comes to your site from an SE, they go directly to the page, not the frameset.

Regarding your original post... header.asp contains some page formatting code - e.g. table open <table> - that is finished in footer.asp - e.g. table close </table>.

You may want to cut the button pieces out of it and make a separate page from them for your top frame, and leave just the page formatting stuff in header.asp. Those links are static.

I'd leave the breadcrumb navigation on the page itself or else you'll have to update the top frame every rime you change the mainframe page.



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: thecount
Date Posted: 19 January 2004 at 3:38am

Thanks... that was something I was thinking to do, but I did'nt want to check al source for the concequences when i do this.
To prevent that visitors from a search page doesn't go direct to the frame instead of the site, i do some check scripting. This script forces to load the site in frames if the referer is not the main site!

If you want an example of it, I can post it here!!

Thanks again for your reply!!! 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net