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

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

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

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

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

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

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

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

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

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

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

[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.

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