[program-l] Re: HTML: Form Mode

  • From: "Corbett, James" <James.Corbett@xxxxxxxxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Fri, 23 Oct 2009 13:14:13 -0400

Travis:

See my last message to Shane in regards to the enter key defaulting to the 
submit button. 

Java script would indeed be the work around but the policy here is no Java 
script.

J.
 

-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of Travis Roth
Sent: October 23, 2009 12:57
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Re: HTML: Form Mode

Hi,
Using JAWS, when you exit forms mode by pressing Enter, JAWS is actually 
passing the Enter key through to the form. And it exits forms mode because a 
new page loads, etc.
In this instance, all of the edit fields must be single line edits
(type=text) and by default pressing Enter when focus is on one of these will 
trigger the default submit button of the form. Same way you can press Enter to 
start a search on Google without tabbing to the Search button. 

If in fact you do not want the user to be able to submit the form by doing 
this, but instead only want this to occur when they are focused on the 
Calculate button, you can override the behavior with some JavaScript.
Possibly by blocking the KeyPress of enter on each edit field, or similar trick.


-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx]
On Behalf Of Corbett, James
Sent: Friday, October 23, 2009 10:23 AM
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Re: HTML: Form Mode

James, it's James....

...but why would the exiting of Form Mode evoke the calculation button?

J.
 

-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx]
On Behalf Of Homme, James
Sent: October 23, 2009 10:49
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Re: HTML: Form Mode

Hi,

This is the default HTML behavior. It's not a JAWS problem.

 

Jim

 

From: program-l-bounce@xxxxxxxxxxxxx [mailto:program-l-bounce@xxxxxxxxxxxxx]
On Behalf Of Corbett, James
Sent: Friday, October 23, 2009 10:30 AM
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] HTML: Form Mode

 

Hello: 

Ok, another day, another issue. My JSP page has a number of edit fields, a 
calculate button and a submit button. So I enter data by first hitting enter on 
an edit field that sets my cursor to Forms Mode and I enter the value.
Pressing the TAB key takes me to the next field and so on. Upon filling all of 
the required fields I press enter on the calculate button and my validation 
routine is performed. In this example I have mistakenly entered a alpha value 
into a numeric field and an error message informs me of such.

So, I need to change my value, I first select the edit field, press enter to 
allow me to edit the field I.E. Forms Mode is again evoked.... I enter the new 
value.... At this point I can either tab to the calculate button or hit enter 
to take me out of the Forms Mode and scroll the page to locate the calc 
button.... However, hitting enter after entering the value somehow evokes my 
validation routine!

This is not the expected behaviour because there might be more then one value 
to be changed. So, what's actually going on here?

J. 

 

James M. Corbett 

A - Technical Specialist
GST/HST Micros | Micros de la TPS/TVH
Business Suite Assessing Systems (BSAS) Revenue and Accounting Systems 
Directorate (RASD) | Direction des Systèmes de revenu et de comptabilité
(DSRC) Information Technology Branch (ITB) | Direction générale de 
l'informatique (DGI) Canada Revenue Agency | Agence du revenue du Canada 

(613) 941-1338 

.FinishProject(.getItDone, .getItRight, { Right Now }) 

DevMicro... 

 


________________________________

This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed. If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it. If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: