SELECT & OPTION question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Albrecht

    SELECT & OPTION question

    Hi folks,

    Scenario: A form on a web page that passes values to a dll. We want the
    user to be able to choose among several locations. The value of the
    variable that gets passed is a 3-letter code which is pretty meaningless
    to the user. We want them to see what the value means to them. Here is
    what we have now:

    <p>Location:</p>
    <select name="NVTGC" size="1">
    <option selected>CGIFN= ^VARNVTGC^</option>
    <option value ="PUL">Locat ion A</option>
    <option value ="PUL">Locat ion B</option>
    <option value ="OWN">Locat ion C</option>
    <option value ="HSL">Locat ion D</option>
    <option value ="AGS">Locat ion E</option>
    <option value ="EDU">Locat ion F</option>
    <option value ="ARC">Locat ion G</option>
    <option value ="MSC">Locat ion H</option>
    </select>

    When the user initially registered for this 'service' they chose one of
    these. If they ever want to change it, they go to the page that includes
    the above html. What they see is:

    Location: AGS

    Which, of course, is correct since they chose location E and if they
    refresh the page they see:

    Location: Location E

    (which I'm not sure I understand)

    What I would like is for them to see the option value rather than the
    'value' string. Not sure if it is possible.

    Users are using a wide variety of browsers though we recommend NS 6, IE
    5 (and later for each of these as well as equivalent versions of other
    browsers)

    Any ideas are appreciated.

    Mike
    --
    Mike Albrecht
    Interlibrary Loan
    Washington State University Libraries
    Holland/New Library Room 101
    Pullman, WA 99164-5610

    (509) 335-5517
    (509) 335-0934 (FAX)
    --------------------------------------
    "... in circles 'round the Sun, doing rings around the Pole ..."
    -- Gordon Lightfoot
    "Stars appear and the shadows are a-fallin' ..."
    -- Buddy Holly
    'Tis the perception of the beautiful,
    A fine extension of the faculties,
    Platonic, universal, wonderful,
    Drawn from the stars, and filtered through the skies,
    Without which life would be extremely dull.
    -- Lord Byron

  • Stanimir Stamenkov

    #2
    Re: SELECT &amp; OPTION question

    Mike Albrecht wrote:
    [color=blue]
    > <p>Location:</p>
    > <select name="NVTGC" size="1">
    > <option selected>CGIFN= ^VARNVTGC^</option>[/color]

    Is the 'selected' attribute dynamically generated on the server
    side? What should "CGIFN=^VARNVTG C^" mean in the given context?
    [color=blue]
    > <option value ="PUL">Locat ion A</option>
    > <option value ="PUL">Locat ion B</option>
    > <option value ="OWN">Locat ion C</option>
    > <option value ="HSL">Locat ion D</option>
    > <option value ="AGS">Locat ion E</option>
    > <option value ="EDU">Locat ion F</option>
    > <option value ="ARC">Locat ion G</option>
    > <option value ="MSC">Locat ion H</option>
    > </select>
    >
    > When the user initially registered for this 'service' they chose one of
    > these. If they ever want to change it, they go to the page that includes
    > the above html. What they see is:
    >
    > Location: AGS
    >
    > Which, of course, is correct since they chose location E and if they
    > refresh the page they see:
    >
    > Location: Location E[/color]

    Do you have an URL to look at?

    --
    Stanimir

    Comment

    Working...