Creating database driven navigation

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Creating database driven navigation

    I am trying to create a web page which has navigation that is both
    edited and generated via a database.

    I have been able to create a table that displays the navigation
    subject headers and sub-menu titles. I would like to now integrate
    this dynamism with a javascript menu. The problem is thatthe table was
    generated by displying the database table column headings first and
    then the table cell values.

    Instead I would like to be able to have each column heading displayed
    then the cell values straight after. And so on for each column in the
    table.

    I'm sorry if this is not very clear but it's the clearest descrition I
    can give.

    Thanks in advance.

    TP
    technoplonker Guest

  2. Similar Questions and Discussions

    1. Database driven CMS and Contribute
      I am looking to create a hybrid of contribute and database driven CMS (like Joomla or Drupal). Anyone ever tied to do anything similar? Any...
    2. Database driven articles
      Hello, I am supernew to ColdFusion and to these forums, and I'm sorry if this is an overly obvious/retarded question. That said: I am...
    3. Database driven web site
      Hi, I want to create a website where people can sign up to the site and put there company details on it. Then when a user searches for a...
    4. Creating variable driven MYSQL queries?
      I've been looking at hand coding my PHP MYSQL queries, and sort of getting the hang of them, but one thing is bothering me. Everyone seems to build...
    5. database driven website using SAN
      We want to develop database driven website. because of enormous amount of data (300GB) customers's tech advisor is insisting on using SAN instead...
  3. #2

    Default Re: Creating database driven navigation

    Why don't you show us you database structure, and mock up some hard-coded
    HTML that represents how the menu should look when it's done.

    Narrative is pretty useless on its own.

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/url]




    "technoplonker" <webmaster@webteq.net> wrote in message
    news:d3402cc5.0401070803.734dcb59@posting.google.c om...
    > I am trying to create a web page which has navigation that is both
    > edited and generated via a database.
    >
    > I have been able to create a table that displays the navigation
    > subject headers and sub-menu titles. I would like to now integrate
    > this dynamism with a javascript menu. The problem is thatthe table was
    > generated by displying the database table column headings first and
    > then the table cell values.
    >
    > Instead I would like to be able to have each column heading displayed
    > then the cell values straight after. And so on for each column in the
    > table.
    >
    > I'm sorry if this is not very clear but it's the clearest descrition I
    > can give.
    >
    > Thanks in advance.
    >
    > TP

    Aaron Bertrand - MVP Guest

  4. #3

    Default Re: Creating database driven navigation

    On 7 Jan 2004 08:03:26 -0800, [email]webmaster@webteq.net[/email] (technoplonker)
    wrote:
    >I am trying to create a web page which has navigation that is both
    >edited and generated via a database.
    >
    >I have been able to create a table that displays the navigation
    >subject headers and sub-menu titles. I would like to now integrate
    >this dynamism with a javascript menu. The problem is thatthe table was
    >generated by displying the database table column headings first and
    >then the table cell values.
    >Instead I would like to be able to have each column heading displayed
    >then the cell values straight after. And so on for each column in the
    >table.
    >
    >I'm sorry if this is not very clear but it's the clearest descrition I
    >can give.
    It would help if we knew the database structure, or if you had encoded
    any type of navigation or location information in it. Maybe category,
    subcategory, or something similar.

    Jeff
    Jeff Cochran Guest

  5. #4

    Default Re: Creating database driven navigation

    The database structure is roughly like this.

    Table 1 - Configuration

    This table has Fields which hold data such as the admin user name and
    password and various other configuration info for the look of the
    page.

    Table 2 - Site Data

    This table consists of three Fields, Name, Description and ID

    Table 3 - Navigation

    This is the table in question. It is intended it to have as many
    Fields as are required. With as many Values for each Field as
    required. Though not all fields will have equal amounts of values.

    The Navigation method being used is here
    [url]http://www.dynamicdrive.com/dynamicindex1/switchmenu.htm[/url]

    The Data manipulation code was obtained from the following FAQ
    [url]http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=44[/url]

    I would like for the code to iterate over each Field one at a time,
    displaying first the name for each then the Values for each before
    moving on to the next Field.

    I thought that perhaps I could use a temprorary variable but the logic
    escapes me. The Db is Access 2000
    technoplonker Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139