lynx-dev
[Top][All Lists]
Advanced

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

LYNX-DEV Re: numbered form inputs and popup options


From: Laura Eaves
Subject: LYNX-DEV Re: numbered form inputs and popup options
Date: Sun, 27 Apr 1997 04:30:10 -0400 (EDT)

Update to previous mail:
I jsut added keypad_mode=LINKS_AND_FORM_FIELDS_ARE_NUMBERED
to the O)ptions menu and used this instead of LINKS_ARE_NUMBERED
to activate the numbered form fields.

Updated README is below.  New zip/diff/README at http://www.intac.com/~leaves/
New diff is a little larger, but not bad.

> 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_AND_FORM_FIELDS_ARE_NUMBERED.
> 
> Description:
> All the following is enabled when
> keypad_mode == LINKS_AND_FORM_FIELDS_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, repositioning the
>    current link and possibly moving to a different page.  (For form input
>    fields, the g is optional.)
>    (I know, this is ugly, but it is a first cut and 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.
> (UPDATE: Adding kyepad_mode==LINKS_AND_FORM_FIELDS_ARE_NUMBERED to the options
> menu increased teh size of the diff ot 509 lines, 11 files.  But the changes
> are mostly small.)
> 
> 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]