Re: [WSG] Simple question on forms

2007-12-05 Thread Max A. Shpack
form elements have focus() method in javascript. plain html doesn't allow this.

Cheers,
Max.

2007/12/5, Minh D. Tran [EMAIL PROTECTED]:
 Hi Everyone,

 I just have a question regarding forms. How do I set the cursor to default
 on a certain form input field?

 Thanks,
 M




  
 Looking for last minute shopping deals? Find them fast with Yahoo! Search.
 ***
 List Guidelines:
 http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe:
 http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: [EMAIL PROTECTED]
 ***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Simple question on forms

2007-12-05 Thread Matthew Pennell
On 12/5/07, Minh D. Tran [EMAIL PROTECTED] wrote:

 I just have a question regarding forms. How do I set the cursor to default
 on a certain form input field?


Do you mean you want to automatically give focus to a particular form field
when the page loads? You can simply call the .focus() method on the element:

document.getElementById('myfield').focus();

Consider the accessibility implications, first, though; not everyone will be
happy to have decisions made for them about where they want their cursor to
be. ;)

- Matthew.


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

Re: [WSG] Simple question on forms

2007-12-05 Thread Charlesthomas Eaton


By default, forms fields take focus from the top-down and left to  
right. All you have to do, is line them up in the order you want them  
to have focus.

-chuck
=
On Dec 5, 2007, at 9:47 AM, Minh D. Tran wrote:


Hi Everyone,

I just have a question regarding forms. How do I set the cursor to  
default on a certain form input field?


Thanks,
M




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Simple question on forms

2007-12-05 Thread Michael Horowitz
tabindex determines the order in which people tab through a form.  I 
would prefer this to using javascript because it avoids problems with 
browsers that don't recognize the javascript.


http://www.w3.org/TR/html4/interact/forms.html#h-17.11

Michael Horowitz
Your Computer Consultant
http://yourcomputerconsultant.com
561-394-9079



Charlesthomas Eaton wrote:
By default, forms fields take focus from the top-down and left to 
right. All you have to do, is line them up in the order you want them 
to have focus.

-chuck
=
On Dec 5, 2007, at 9:47 AM, Minh D. Tran wrote:


Hi Everyone,

I just have a question regarding forms. How do I set the cursor to 
default on a certain form input field?


Thanks,
M




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Simple question on forms

2007-12-05 Thread Alastair Campbell

Michael Horowitz wrote:
 tabindex determines the order in which people tab through a form.

The default tabindex simply follows the source order, as mentioned before.

I would recommend not specifying the tabindex unless you are prepared
to spend a lot of time doing everything, as it overrides the default.
For more:
http://joeclark.org/book/sashay/serialization/Chapter08.html#h3-5325
http://www.netmag.co.uk/zine/the-accessibility-test/www-huntforproperty-ie

There are two main methods of going through a page with a screen
reader, with 'next' (arrowing in JAWs) or with the tab, through links
and form controls. When those two don't match, it's pretty confusing.

Kind regards,

-Alastair


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Simple question on forms

2007-12-05 Thread Alastair Campbell
Michael Horowitz wrote:
 tabindex determines the order in which people tab through a form.

The default tabindex simply follows the source order, as mentioned before.

I would recommend not specifying the tabindex unless you are prepared
to spend a lot of time doing everything, as it overrides the default.
For more:
http://joeclark.org/book/sashay/serialization/Chapter08.html#h3-5325
http://www.netmag.co.uk/zine/the-accessibility-test/www-huntforproperty-ie

There are two main methods of going through a page with a screen
reader, with 'next' (arrowing in JAWs) or with the tab, through links
and form controls. When those two don't match, it's pretty confusing.

Kind regards,

-Alastair


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Simple question on forms

2007-12-05 Thread Michael Horowitz


tabindex determines the order in which people tab through a form.  I 
would prefer this to using javascript because it avoids problems with 
browsers that don't recognize the javascript.


http://www.w3.org/TR/html4/interact/forms.html#h-17.11

Michael Horowitz
Your Computer Consultant
http://yourcomputerconsultant.com
561-394-9079



Charlesthomas Eaton wrote:
By default, forms fields take focus from the top-down and left to 
right. All you have to do, is line them up in the order you want them 
to have focus.

-chuck
=
On Dec 5, 2007, at 9:47 AM, Minh D. Tran wrote:


Hi Everyone,

I just have a question regarding forms. How do I set the cursor to 
default on a certain form input field?


Thanks,
M




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



RE: [WSG] Simple question on forms

2007-12-05 Thread James Leslie
 
That is not really true. Form fields take focus from the order they are
in the code. They can be positioned anywhere on the screen using CSS.
Without intervention they will follow this order regardless of top,
bottom, left or right on the screen.

'Lining them up' would (hopefully) be done with CSS but will not affect
the document flow.

James

--
By default, forms fields take focus from the top-down and left to right.
All you have to do, is line them up in the order you want them to have
focus.
-chuck



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



RE: [WSG] Simple question on forms

2007-12-05 Thread James Leslie
That is not really true. Form fields take focus from the order they are
in the code. They can be positioned anywhere on the screen using CSS.
Without intervention they will follow this order regardless of top,
bottom, left or right on the screen.

'Lining them up' would (hopefully) be done with CSS but will not affect
the document flow.

James

--
By default, forms fields take focus from the top-down and left to right.
All you have to do, is line them up in the order you want them to have
focus.
-chuck



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Simple question on forms

2007-12-05 Thread Max A. Shpack

form elements have focus() method in javascript. plain html doesn't allow this.

Cheers,
Max.

2007/12/5, Minh D. Tran [EMAIL PROTECTED]:
 Hi Everyone,

 I just have a question regarding forms. How do I set the cursor to default
 on a certain form input field?

 Thanks,
 M




  
 Looking for last minute shopping deals? Find them fast with Yahoo! Search.
 ***
 List Guidelines:
 http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe:
 http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: [EMAIL PROTECTED]
 ***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Simple question on forms

2007-12-05 Thread Matthew Pennell
On 12/5/07, Minh D. Tran [EMAIL PROTECTED] wrote:

 I just have a question regarding forms. How do I set the cursor to default
 on a certain form input field?


Do you mean you want to automatically give focus to a particular form field
when the page loads? You can simply call the .focus() method on the element:

document.getElementById('myfield').focus();

Consider the accessibility implications, first, though; not everyone will be
happy to have decisions made for them about where they want their cursor to
be. ;)

- Matthew.


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

[WSG] Simple question on forms

2007-12-05 Thread Minh D. Tran
Hi Everyone,

I just have a question regarding forms. How do I set the cursor to default on a 
certain form input field?

Thanks,
M



   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

Re: [WSG] Simple question on forms

2007-12-05 Thread Charlesthomas Eaton
By default, forms fields take focus from the top-down and left to  
right. All you have to do, is line them up in the order you want them  
to have focus.

-chuck
=
On Dec 5, 2007, at 9:47 AM, Minh D. Tran wrote:


Hi Everyone,

I just have a question regarding forms. How do I set the cursor to  
default on a certain form input field?


Thanks,
M




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***