| Author |
Topic Search Topic Options
|
thecount
Newbie
Joined: 31 December 2003
Location: Netherlands
Status: Offline
Points: 28
|
Post Options
Thanks(0)
Quote Reply
Topic: How to put navigation in the topframe? 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
|
 |
Semikolon
Senior Member
Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
thecount
Newbie
Joined: 31 December 2003
Location: Netherlands
Status: Offline
Points: 28
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
Semikolon
Senior Member
Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
thecount
Newbie
Joined: 31 December 2003
Location: Netherlands
Status: Offline
Points: 28
|
Post Options
Thanks(0)
Quote Reply
Posted: 18 January 2004 at 3:34pm |
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.
|
 |
thecount
Newbie
Joined: 31 December 2003
Location: Netherlands
Status: Offline
Points: 28
|
Post Options
Thanks(0)
Quote Reply
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>")%> |
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 18 January 2004 at 7:11pm |
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.
|
 |