473,325 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

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">Location A</option>
<option value ="PUL">Location B</option>
<option value ="OWN">Location C</option>
<option value ="HSL">Location D</option>
<option value ="AGS">Location E</option>
<option value ="EDU">Location F</option>
<option value ="ARC">Location G</option>
<option value ="MSC">Location 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
http://www.wsulibs.wsu.edu
(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

Jul 20 '05 #1
1 1756
Mike Albrecht wrote:
<p>Location:</p>
<select name="NVTGC" size="1">
<option selected>CGIFN=^VARNVTGC^</option>
Is the 'selected' attribute dynamically generated on the server
side? What should "CGIFN=^VARNVTGC^" mean in the given context?
<option value ="PUL">Location A</option>
<option value ="PUL">Location B</option>
<option value ="OWN">Location C</option>
<option value ="HSL">Location D</option>
<option value ="AGS">Location E</option>
<option value ="EDU">Location F</option>
<option value ="ARC">Location G</option>
<option value ="MSC">Location 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


Do you have an URL to look at?

--
Stanimir

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: James | last post by:
I'm trying to make a select box where each of 3 elements shows up as a different color. I've gotten it working on the PC, but seem to be having some troubles with the Mac/IE combo. Apparently...
7
by: brian.ackermann | last post by:
Hello all, I'm currently writing a tiny little bit of navigation to a page, and I've come across this stumbling block: Goto Page&nbsp;&nbsp; <select name="page"> <SCRIPT...
6
by: Bonge Boo! | last post by:
This has got to be obvious, but I can't make it work. I have a form called with 3 pull down menus. They are linked to a database which generates the values for the <SELECT? Pull-downs. Lets...
3
by: =?Utf-8?B?UmljaA==?= | last post by:
I need to build a sql string that looks like this: strSql = "Select * from tbl1 Where x In (123,456,789)" or strSql = "Select * from tbl1 Where x In (123,456,789,527,914)" The numbers...
5
by: ThatVBGuy | last post by:
Hello All, I have a multi-select list box, In this box is a list of names. I want to call a javascript onClick that will keep a running total of how many people were clicked. As soon as a user...
8
by: crayfiss | last post by:
Hi, firstly I am a total freshie in all this. From what I have gathered on the web and this forum, I finally managed to get my form up. I have a set of radio buttons with values to it and a select...
5
by: bestrafer | last post by:
Hi. I'm experiencing the following problem with a completion/hint on 'select'. When 'select' gains focus there is a possibility to go through all options by typing in a first symbol of the...
3
by: Italio Novuas | last post by:
Hi all, let me begin by saying that I *ALMOST* have this complete! What I'm trying to do is make it so my text area shows the innerHTML of any select item with the same value. For example, if I...
1
by: vinpkl | last post by:
hi all i have two dynamic drop downs of dealer id and category id which work properly with window.location var dealerid; function getList(xyz) {...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.