Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Best way to set up a menu

Best way to set up a menu

Scheduled Pinned Locked Moved Web Development
javascriptphpsysadminlinuxhosting
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tikkunim
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • T Tikkunim

      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

      J Offline
      J Offline
      Johnny
      wrote on last edited by
      #2

      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.

      T 1 Reply Last reply
      0
      • J Johnny

        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.

        T Offline
        T Offline
        Tikkunim
        wrote on last edited by
        #3

        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

        P 1 Reply Last reply
        0
        • T Tikkunim

          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

          P Offline
          P Offline
          Perspx
          wrote on last edited by
          #4

          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

          T 1 Reply Last reply
          0
          • P Perspx

            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

            T Offline
            T Offline
            Tikkunim
            wrote on last edited by
            #5

            Thanks, 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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups