lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV numbered form inputs and popup options


From: Laura Eaves
Subject: LYNX-DEV numbered form inputs and popup options
Date: Sun, 27 Apr 1997 01:16:25 -0400 (EDT)

I started experimenting with adding link numbers to form input fields today
and it turned out to be relatively easy.  (I'm sure the regular developers
could have done it in less time, but it only took me a day or so.)

The following patch adds link numbers to form input fields and id numbers
to options in popup menus when keypad_mode==LINKS_ARE_NUMBERED.
(This should probably be made a separate option -- maybe toggled by a command
like the * command for image links, or set by a new keypad mode...
This is just a first cut.)

Description:
All the following is disabled when keypad_mode != LINKS_ARE_NUMBERED.
1) Link numbers are added for all form input fields
   EXCEPT for type=hidden, type=file and type=range.  (The only reason I didn't
   add them for type==file or range is that I couldn't find documentation
   on these types and don't have an example to test.)
2) If the user types a number that happens to identify a form input field,
   the command behaves just like Klaus's 123g command.  (For form input fields,
   the g is optional.) (I know, this is ugly, but it can always be changed...)
3) For popup menus, a link number is generated for the option list,
   and then for each option, an option number is generated in parentheses.
   So, an option list field looks like
        [123][(1)  option 1___]
   When the popup menu is activated, the user can then type the number
   of the option to select it.

I tested this stuff on http://www.voicenet.com/~leaves/file.html
and on the webtechs validator page, which has checkboxes, radio buttons
and text input fields.

I also tested it when using the -popup command line option
and using the * (image links) toggle.
So far it seems to work.

If anyone wants to try it, I'm putting the relevant links in
http://www.intac.com/~leaves/

The change touched 6 files and the entire context tdiff is only 343 lines.
It is based on lynx2.7.1ac-0.12.

In the process of adding cases to popup_options in LYForms.c,
I found some bugus command cases.
In 2.7.1, try activating a popup menu and
then typing 7 or 3.  It will cancel the selection.  I deleted
these cases.  (See the diff.)

Comments/feedback welcome.
If speech users on the list would like to try it, I'd be interested in knowing
if they think it's helpful.
--le
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]