Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How to put navigation in the topframe?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to put navigation in the topframe?

 Post Reply Post Reply Page  12>
Author
thecount View Drop Down
Newbie
Newbie
Avatar

Joined: 31 December 2003
Location: Netherlands
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote thecount Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
thecount View Drop Down
Newbie
Newbie
Avatar

Joined: 31 December 2003
Location: Netherlands
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote thecount Quote  Post ReplyReply Direct Link To This Post 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.

 

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
thecount View Drop Down
Newbie
Newbie
Avatar

Joined: 31 December 2003
Location: Netherlands
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote thecount Quote  Post ReplyReply Direct Link To This Post 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. 

Back to Top
thecount View Drop Down
Newbie
Newbie
Avatar

Joined: 31 December 2003
Location: Netherlands
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote thecount Quote  Post ReplyReply Direct Link To This Post 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>")%>
 

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.