Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Navigation idea?

Status
Not open for further replies.

mayamanako

Technical User
Aug 31, 2005
113
GB
Hi folks, any idea how to do this kind of navigation?


(the horizontal nav of yahoo)

i prefer not to use javascript.
 
Probably using server side code to generate the nav options for each of the original options.

Should not be to difficult in any language.


you could of course do it the old fashion way if you don't have to many sub options and generate a menu for each of the options and include it.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
hi vacunita thanks for your response.

that's what i am thinking of doing. using database and server-side code.

can you please show me a bit more specific way how to do it? if it's possible for you to show an example in .asp would be great, but any language would be fine. i just want to have a bit more specific idea how i could get around this challenge.

once again, thanks for any suggestions.
 
I'm not very versed in ASP but I'll try to explain.

What you do is make your links for the menu options submit a value to your processing page and you use that value to retrieve the sub links or sub options for that specific choice for example and in pseudo code:

Code:
<a href="index.asp?menuchoice=option1">Option 1</a>
<a href="index.asp?menuchoice=option2">Option 2</a>
<a href="index.asp?menuchoice=option3">Option 3</a>
query database: SELECT *FROM menus WHERE p_option=menuchoice_variable;

display links returned from DB.


----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Hi Vacunita, that's really great! I think I now have a general idea how I could solve this.

Thanks once again. Have a nice weekend!
 
Glad I could help, and same to you about the weekend.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top