Dynamic OPTION items in a SELECT list?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • William Fields

    #1

    Dynamic OPTION items in a SELECT list?

    Hello,

    I have an HTML page I'm trying to send down to the users browser that
    contains all data for a few SELECT objects (to reduce round-trips), and I'd
    like the SELECT drop down lists to control what parts of the data are
    presented in the other SELECT lists.

    I don't have much JavaScript experience, but I have seen suggestions along
    the lines of "Create a JavaScript array that holds all the data and rebuild
    the OPTION list in the SELECT lists as needed".

    That's great, but I don't know where to begin, does anyone have an actual
    code example of how to do this?

    Thanks.

    --
    William Fields
    MCSD - Microsoft Visual FoxPro
    US Bankruptcy Court
    Phoenix, AZ

    "I have no special talents, I am only passionately curious"

    - Albert Einstein




  • RobG

    #2
    Re: Dynamic OPTION items in a SELECT list?

    William Fields wrote:[color=blue]
    > Hello,
    >
    > I have an HTML page I'm trying to send down to the users browser that
    > contains all data for a few SELECT objects (to reduce round-trips), and I'd
    > like the SELECT drop down lists to control what parts of the data are
    > presented in the other SELECT lists.
    >
    > I don't have much JavaScript experience, but I have seen suggestions along
    > the lines of "Create a JavaScript array that holds all the data and rebuild
    > the OPTION list in the SELECT lists as needed".
    >
    > That's great, but I don't know where to begin, does anyone have an actual
    > code example of how to do this?
    >[/color]

    news://inetbws1.citec. qld.gov.au:119/RizUd.50$Zn.661 7@news.optus.ne t.au

    or

    <URL:http://groups-beta.google.com/group/comp.lang.javas cript/browse_frm/thread/ee05c0cbb52fa5f 9/a66b396081eaac8 0?q=Equivalent+ to+display:none +for+%3Coption% 3E+in+IE&_done= %2Fgroup%2Fcomp .lang.javascrip t%2Fsearch%3Fgr oup%3Dcomp.lang .javascript%26q %3DEquivalent+t o+display:none+ for+%3Coption%3 E+in+IE%26qt_g% 3D1%26searchnow %3DSearch+this+ group%26&_doneT itle=Back+to+Se arch&&d#a66b396 081eaac80>

    or

    search for "Equivalent to display:none for <option> in IE"


    --
    Rob

    Comment

    • Matt Kruse

      #3
      Re: Dynamic OPTION items in a SELECT list?

      William Fields wrote:[color=blue]
      > I have an HTML page I'm trying to send down to the users browser that
      > contains all data for a few SELECT objects (to reduce round-trips),
      > and I'd like the SELECT drop down lists to control what parts of the
      > data are presented in the other SELECT lists.[/color]

      There is a lot of code out there showing different ways to accomplish this.
      My library is kind of an all-in-one approach that handles almost all cases
      that most people encounter:


      Before implementing a solution which requires javascript, make sure that you
      either have a non-javascript backup method, or know that you're excluding
      users who may have javascript disabled.

      --
      Matt Kruse



      Comment

      • William Fields

        #4
        Re: Dynamic OPTION items in a SELECT list?

        All I have to say is WOW!

        Thanks Matt.

        --
        William Fields
        MCSD - Microsoft Visual FoxPro
        US Bankruptcy Court
        Phoenix, AZ

        "I have no special talents, I am only passionately curious"

        - Albert Einstein



        "Matt Kruse" <newsgroups@mat tkruse.com> wrote in message
        news:d05sbg0tet @news2.newsguy. com...[color=blue]
        > William Fields wrote:[color=green]
        >> I have an HTML page I'm trying to send down to the users browser that
        >> contains all data for a few SELECT objects (to reduce round-trips),
        >> and I'd like the SELECT drop down lists to control what parts of the
        >> data are presented in the other SELECT lists.[/color]
        >
        > There is a lot of code out there showing different ways to accomplish
        > this.
        > My library is kind of an all-in-one approach that handles almost all cases
        > that most people encounter:
        > http://www.javascripttoolbox.com/dynamicoptionlist/
        >
        > Before implementing a solution which requires javascript, make sure that
        > you either have a non-javascript backup method, or know that you're
        > excluding users who may have javascript disabled.
        >
        > --
        > Matt Kruse
        > http://www.JavascriptToolbox.com
        >[/color]


        Comment

        Working...