Re: <button> tag not getting activated with tab or enter key whenusing JAWS

Rich Caloggero <[email protected]>
Newsgroups gmane.comp.mozilla.accessibility
Organization WGBH NCAM
Message-ID <5587B74A9E4E42569EFB1DA2A03108F9@RICH>
Not sure if I'm understanding you question exactly, but here's my attempt at 
an answer.

The button needs a handler in order for it to do anything useful.
If you use an input type="submit", then the onsubmit event on the parent 
form will fire when the button is pressed.
If you use input type="button" or simply the button element, then you need 
to attach a handler explicitly (either inline or after the fact via 
javascript).

Here is a little test page. The first button is implemented using input 
type="button" and does nothing when activated with space/enter because it 
has no handler attached. The second button uses the button element and fires 
an alert when activated; it uses an inline handler. The third is an input 
type="submit" and fires the onsubmit handler on the parent form element.

<html>
<head>
<title>List Test</title>
</head>
<body>
<form onsubmit="alert ('submitted'); return false">
<input type="button" title="button1" />
<button onclick="alert('button2'); return false">
button2</button>
<input type="submit" title="button3" />
</form>
<p>--end--</p>

</body>
</html>

----- Original Message ----- 
From: "Gregory J. Rosmaita" <[email protected]>
To: "Devin Lindsey" <[email protected]>; 
<[email protected]>
Sent: Wednesday, May 27, 2009 4:10 PM
Subject: Re: <button> tag not getting activated with tab or enter key 
whenusing JAWS


aloha, devin!

no idea why, but the same problem is encountered when using the latest
release of JAWS, 10.0.1151, and FF 3.0.10 on WinXP SP3

devin, have you tried (or do you use) WebVisum -- it's option to force
rendering of a submit mechanism for form controls without an explicit
submit mechanism and provides a submit mechanism (and a "safety") on
form controls which rely on OnChange or OnSelect events to input form
information, which is obviously extremely helpful, plus the info WebVisum
provides is included when one uses JAWS' "list of form fields" -- with
JAWS 10.0.1151 it is possible to use the list of form fields to activate
a BUTTON which i one cannot otherwise activate using the spacebar or
enter

more info on webvisum can be found at at:

http://www.webvisum.com/

gregory.

---------- Original Message -----------
From: Devin Lindsey <[email protected]>
To: [email protected]
Sent: Wed, 27 May 2009 10:25:39 -0700 (PDT)
Subject: <button> tag not getting activated with tab or enter key when
using JAWS

> Hi,
>
> I'm using FF 3.0.10 and JAWS 10.0.512. When I tab to a button,
> and press enter or spacebar, nothing happens! However, if there
> is a <input type="button"> then the button can be activated. All
> of the buttons can be activated on IE.
>
> Any ideas why?
>
> Thanks!
> Devin
> _______________________________________________
> dev-accessibility mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-accessibility
------- End of Original Message -------

_______________________________________________
dev-accessibility mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-accessibility
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.