Best way to set up a menu
-
Hi, maybe someone has some input on this. I've been puttering around trying to set up a menu on the left side of my webpage that will load pages into the wider right side when the links are clicked. I've tried frames, but there seems to be a problem with my server. I've tried using for this, and downloading some ready made menu-generation programs that create a lot of Javascript, where the code is inaccessible, but evertying is too complex and doesn't give results, when place in my Linux-based hosting account. Now I'm sort of wallowing in PHP, not making much headway. Does anyone have experience regarding the simplest way to code this conceptual script, without Frames?: 1. Code for menu button with an anchor to a page on same server, located on left of webpage. 2. Code that when clicked, loads page into right side. Thanks in advance Shakhar
TIKKUNIM It's never too late to change
-
Hi, maybe someone has some input on this. I've been puttering around trying to set up a menu on the left side of my webpage that will load pages into the wider right side when the links are clicked. I've tried frames, but there seems to be a problem with my server. I've tried using for this, and downloading some ready made menu-generation programs that create a lot of Javascript, where the code is inaccessible, but evertying is too complex and doesn't give results, when place in my Linux-based hosting account. Now I'm sort of wallowing in PHP, not making much headway. Does anyone have experience regarding the simplest way to code this conceptual script, without Frames?: 1. Code for menu button with an anchor to a page on same server, located on left of webpage. 2. Code that when clicked, loads page into right side. Thanks in advance Shakhar
TIKKUNIM It's never too late to change
Save yourself a lot of hassle and use some existing software like WordPress or Drupal. Try to ignore anything to do with frames or thinking in terms of you click in a menu and the right side of the page loads. Clicking on a menu can simply load another page with the same menu displayed - this is how the majority of websites work (such as here at CodeProject) and it doesn't have any of the problems associated with frames.
-
Save yourself a lot of hassle and use some existing software like WordPress or Drupal. Try to ignore anything to do with frames or thinking in terms of you click in a menu and the right side of the page loads. Clicking on a menu can simply load another page with the same menu displayed - this is how the majority of websites work (such as here at CodeProject) and it doesn't have any of the problems associated with frames.
Thanks. Can you give me a few tips, about how this new paradigm works? I'm now working on a website that I am gradually building up, so the menu gradually expands as I put in more pages, and this will continue indefinitely. In such a dynamically evolving situation, how would you go about setting up a workflow based on having the menu on every page? Thank in advance Shakhar
TIKKUNIM It's never too late to change
-
Thanks. Can you give me a few tips, about how this new paradigm works? I'm now working on a website that I am gradually building up, so the menu gradually expands as I put in more pages, and this will continue indefinitely. In such a dynamically evolving situation, how would you go about setting up a workflow based on having the menu on every page? Thank in advance Shakhar
TIKKUNIM It's never too late to change
If you're using PHP, I'd recommend placing the code for the menu in a separate file, then including this in each of your pages using the
include()
function - then you can just change the central menu file and all changes will be reflected in each individual page that contains it. Regards, --Perspx"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds -
If you're using PHP, I'd recommend placing the code for the menu in a separate file, then including this in each of your pages using the
include()
function - then you can just change the central menu file and all changes will be reflected in each individual page that contains it. Regards, --Perspx"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus TorvaldsThanks, I've started looking into PHP. However, its seems I have a sharp learning curve ahead of me, cause I don't know the faintest about PHP. Yet. However, the question now is, which is the steeper learning curve: learning enough PHP to create this navigation, or taking the above advice and going into a CMS like Wordpress or Drupal? I've only gone into website building because I wanted to get some content across, and I've been wasting virtually weeks, boning up on HTML, web-design, website hosting and now PHP, just to start off, and its seems the ocean is just getting deeper... Appreciate any advice... Shakhar
TIKKUNIM It's never too late to change