Drop down option on Results Wizard

J

John Parker

I am trying to create a page which takes a list of manufacturers from a
table in a drop down (so far so good, but its just a list with no action).

I now want to be able to select one of the manufacturers which then gives me
a second drop down list of products associated with said manuf.

Then when I select model I go to a product page..

Is this possible using the Results Wizard?

Any assistance greatly appreciated
John Parker
 
J

John Parker

Thanks Sonia that looks like it will help me a lot..

One question though I notice their example requires the "Submit" button to
be selected, is it possible to automate on click to eliminate "Submit"

Thanks again.
John Parker
 
S

SoniaC

Yes, it is possible. Look in the code and add the onchange command.

It will look like this in the code section in grey after the script for the
drop down:
(brown or red section you should never change, it will change when you add
or delete anything in the grey section)

<!--webbot bot="DatabaseRegionStart" endspan
i-checksum="21920" --></font><font size="1" face="Arial"><select
onchange=Form1.submit() NAME="YourField" SIZE="1" style="font-family: Arial;
font-size: 8pt"><option selected><% = Request.Form("YourField") %> </option>

Where Form1 is the name of the form and YourField is the name of the field
in the drop down box.

The last command (if I can call it like this, as I said I am not an expert
or programmer, only a user) <option selected><% = Request.Form("YourField")
%> </option> Makes the drop down box to keep the last selection you made to
search, so you know what did you choose. If you don't put this, then the
drop down box will do the search but will show the first name on the line
of choices.

Let me know how is going.

SoniaC
 
S

Steve Easton

The problem with removing the submit button is that people who can't use a mouse will be unable to
select anything but the first result in the dropdown.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
S

SoniaC

That is a very interesting observation. But, who is not using a mouse today?
I thought any computer have a mouse or joystick of some kind.

Using the tab key you can go to the drop down box and with the arrow key it
is possible to select, as you said, the first result. Then, there should be
a way to make the arrow key to open the drop down box and scroll for the
result you want.

How can you make the drop down open (scroll) without a mouse? Curiosity
only....

SoniaC
 
R

Ronx

Tab to the box, then use the Up-Down arrow keys to make a selection (the
drop down does not open, but the selection changes). The enter key has no
effect, therefore a submit button is required to "submit" the form. Tab
from the dropdown to the submit button.

Ron
 
S

Steve Easton

To make the drop down scroll without a mouse, tab to it and then use the Down and Up arrows. When
the selection you want is in view, tab to the Go or Submit button and then press enter.

Although I'm sure the numbers are very small, there are people with disabilities that can't use a
mouse.
It's all part of maintaining "Accessibility."

;-)

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
S

SoniaC

Thank you Ron, but you are missing the prior comment.
We are talking about the drop-down box that will change "without" a submit
button.
Using the onchange command.
The observation from Steve was that in that case the people without a mouse
will have only the first choice.
 
S

Steve Easton

Because if you use the onchange command the instant you arrow down to the first selection onchange
fires. Same with onselect.

The only way to prevent it is to use an onclick fired by a button.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
S

SoniaC

Yes, I thought about the people with disabilities, that is what I referred
when I wrote "I thought any computer have a mouse or >>>>joystick<<<<<< of
some kind."
But depend also on to whom is directed the page you are building. Right. :)
 
S

Steve Easton

Correct. I just wanted to make you aware of the "possibility"

;-)


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
K

Kathleen Anderson [MVP - FrontPage]

SoniaC said:
Yes, I thought about the people with disabilities, that is what I
referred when I wrote "I thought any computer have a mouse or

There are people who don't use a mouse because they can't see the screen to
point and click, so they use a screen reader, a keyboard, the Tab key and/or
up and down arrow keys to navigate through a web page and forms on a web
page. There are people who can't use a mouse because of some kind of
physical problem that makes it difficult to hold a mouse for an extended
period of time, or hold it still long enough to click in a specific part of
a page (think checkbox or radio button).
But depend also on to whom is directed the page you are building.
Right. :)
Wrong. :) You should build your web site so that it is usable by anyone,
regardless of ability or disability.


--
~ Kathleen Anderson
Accessibility Diva
http://www.AccessibilityDiva.com

"The power of the Web is in its universality. Access by everyone regardless
of disability is an essential aspect."
-- Tim Berners-Lee, W3C Director and inventor of the World Wide Web
 
S

SoniaC

Sorry, I did not mean to offend anybody, buy Yes, that is my opinion.
There are sites that are not directed to everybody, and sometime you need to
build the site to please the mayority.
So, there is no Right or Wrong, everything is relative....

SoniaC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top