Populating several combo boxes

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

  1. #1

    Default Populating several combo boxes

    I have a form that will have a combo box repeated several times (continuous
    form, one for each record), it's going to cause a problem if each has to
    have it's own set of [option value=] lists against it as there may be
    several hundred combo boxes and several hundred items in the dropdown list
    for each.

    Is it possible to have this list of items stored somewhere and each instance
    of the combo will use that as a data source, e.g. instead of:

    ('scuse sqaure bracket useage, don't want to mess up any html enabled
    reader)

    [select name=combo1]
    [option value=1]hello[/option]
    [option value=2]world[/option]
    [/select]
    we would like to have something like:

    MylistOfValuesHere
    1,Hello
    2,World

    [select name=combo1]
    get options from MyListOfValues above
    [/select]

    Would this be possible, perhaps embedding XML?


    For example John Smith Guest

  2. Similar Questions and Discussions

    1. Need help with xml and combo boxes
      Basically what im doing is a ui for a electronic book. The book is broken into 3 parts and each part has its own set of chapters. My xml schema...
    2. Populating Combo Box from MySQL via PHP
      I would like load values from mySQL to select from in a combo box. I would love to do this the most simple way w/o php, but that is the language I...
    3. Combo boxes
      I have a combo box on one form with has a row source of 2 fields, an item number and item name. I item number width is 0 so it only displays the...
    4. Populating Drop Down Boxes from a database
      We moved our wesite from a Box running Coldfusion 4.0 to a box running Coldfusion MX. We populate some drop down boxes with information from a...
    5. Populating three list boxes from the database
      Can anybody help? I need to have three list boxes automatically populating each other, (ie when region is selected from the first listbox, it will...
  3. #2

    Default Re: Populating several combo boxes

    If you have a known browser platform (eg >IE4 and >=NS6) and can rely on js
    being enabled then you might consider putting the select in a popup.
    You could then populate it either from a separate asp page or embed the
    values in a javascript array on the main page. Then istaed of having a
    select on each row you'd have a text box and/or hidden field if you want to
    display the text but submit the value.

    Tim.



    "For example John Smith" <someone@microsoft.com> wrote in message
    news:3f044548$0$13005$afc38c87@news.easynet.co.uk. ..
    > I have a form that will have a combo box repeated several times
    (continuous
    > form, one for each record), it's going to cause a problem if each has to
    > have it's own set of [option value=] lists against it as there may be
    > several hundred combo boxes and several hundred items in the dropdown list
    > for each.
    >
    > Is it possible to have this list of items stored somewhere and each
    instance
    > of the combo will use that as a data source, e.g. instead of:
    >
    > ('scuse sqaure bracket useage, don't want to mess up any html enabled
    > reader)
    >
    > [select name=combo1]
    > [option value=1]hello[/option]
    > [option value=2]world[/option]
    > [/select]
    > we would like to have something like:
    >
    > MylistOfValuesHere
    > 1,Hello
    > 2,World
    >
    > [select name=combo1]
    > get options from MyListOfValues above
    > [/select]
    >
    > Would this be possible, perhaps embedding XML?
    >
    >

    Tim Williams Guest

  4. #3

    Default Re: Populating several combo boxes

    **** Post for FREE via your newsreader at post.usenet.com ****

    Incidentally, how do you populate fields in a form from another asp page?
    any code guidance appreciated.

    Cheers.

    Sergio.

    "Tim Williams" <saxifrax@pacbellremovethis.net> wrote in message
    news:evwwYzXQDHA.1560@TK2MSFTNGP12.phx.gbl...
    > If you have a known browser platform (eg >IE4 and >=NS6) and can rely on
    js
    > being enabled then you might consider putting the select in a popup.
    > You could then populate it either from a separate asp page or embed the
    > values in a javascript array on the main page. Then istaed of having a
    > select on each row you'd have a text box and/or hidden field if you want
    to
    > display the text but submit the value.
    >
    > Tim.
    >
    >
    >
    > "For example John Smith" <someone@microsoft.com> wrote in message
    > news:3f044548$0$13005$afc38c87@news.easynet.co.uk. ..
    > > I have a form that will have a combo box repeated several times
    > (continuous
    > > form, one for each record), it's going to cause a problem if each has to
    > > have it's own set of [option value=] lists against it as there may be
    > > several hundred combo boxes and several hundred items in the dropdown
    list
    > > for each.
    > >
    > > Is it possible to have this list of items stored somewhere and each
    > instance
    > > of the combo will use that as a data source, e.g. instead of:
    > >
    > > ('scuse sqaure bracket useage, don't want to mess up any html enabled
    > > reader)
    > >
    > > [select name=combo1]
    > > [option value=1]hello[/option]
    > > [option value=2]world[/option]
    > > [/select]
    > > we would like to have something like:
    > >
    > > MylistOfValuesHere
    > > 1,Hello
    > > 2,World
    > >
    > > [select name=combo1]
    > > get options from MyListOfValues above
    > > [/select]
    > >
    > > Would this be possible, perhaps embedding XML?
    > >
    > >
    >
    >


    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    *** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
    [url]http://www.usenet.com[/url]
    Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    Sergio Orrego Guest

  5. #4

    Default Re: Populating several combo boxes

    Try Remote Scripting

    tim


    "Sergio Orrego" <sergio@stressedmonkey.net-nospam> wrote in message
    news:3f04bc7f$1@post.usenet.com...
    > **** Post for FREE via your newsreader at post.usenet.com ****
    >
    > Incidentally, how do you populate fields in a form from another asp page?
    > any code guidance appreciated.
    >
    > Cheers.
    >
    > Sergio.
    >
    > "Tim Williams" <saxifrax@pacbellremovethis.net> wrote in message
    > news:evwwYzXQDHA.1560@TK2MSFTNGP12.phx.gbl...
    > > If you have a known browser platform (eg >IE4 and >=NS6) and can rely on
    > js
    > > being enabled then you might consider putting the select in a popup.
    > > You could then populate it either from a separate asp page or embed the
    > > values in a javascript array on the main page. Then istaed of having a
    > > select on each row you'd have a text box and/or hidden field if you want
    > to
    > > display the text but submit the value.
    > >
    > > Tim.
    > >
    > >
    > >
    > > "For example John Smith" <someone@microsoft.com> wrote in message
    > > news:3f044548$0$13005$afc38c87@news.easynet.co.uk. ..
    > > > I have a form that will have a combo box repeated several times
    > > (continuous
    > > > form, one for each record), it's going to cause a problem if each has
    to
    > > > have it's own set of [option value=] lists against it as there may be
    > > > several hundred combo boxes and several hundred items in the dropdown
    > list
    > > > for each.
    > > >
    > > > Is it possible to have this list of items stored somewhere and each
    > > instance
    > > > of the combo will use that as a data source, e.g. instead of:
    > > >
    > > > ('scuse sqaure bracket useage, don't want to mess up any html enabled
    > > > reader)
    > > >
    > > > [select name=combo1]
    > > > [option value=1]hello[/option]
    > > > [option value=2]world[/option]
    > > > [/select]
    > > > we would like to have something like:
    > > >
    > > > MylistOfValuesHere
    > > > 1,Hello
    > > > 2,World
    > > >
    > > > [select name=combo1]
    > > > get options from MyListOfValues above
    > > > [/select]
    > > >
    > > > Would this be possible, perhaps embedding XML?
    > > >
    > > >
    > >
    > >
    >
    >
    >
    > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    > *** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
    > [url]http://www.usenet.com[/url]
    > Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
    > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    Tim Williams 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