Yes, and that's the point ... to save the user from 
having to use the mouse to click into the field, just to 
start typing.  Tapestry adds the JavaScript so that the 
user can just start typing.  It's a small, but graceful, 
enhancement that you don't notice until you visit a site 
that doesn't have this feature.

If the field is required, then the user shouldn't have 
to mouse to start typing, they should just be able to 
start typing.

--
[EMAIL PROTECTED]

http://tapestry.sf.net
> but the page loads for the first time, so this field must be empty!
> 
> ----- Original Message -----
> From: "Howard M. Lewis Ship" <[EMAIL PROTECTED]>
> To: "Franky Niagara" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Tuesday, June 11, 2002 8:23 PM
> Subject: Re: [Tapestry-developer] JavaScript Trouble
> 
> 
> > Tapestry inserts code to select the first ValidField it finds that is
> either
> > required and blank, or in error.
> >
> > ----- Original Message -----
> > From: "Franky Niagara" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 11, 2002 2:57 AM
> > Subject: [Tapestry-developer] JavaScript Trouble
> >
> >
> > Hello
> >
> > in the <initialization> section I have this code:
> >
> > <initialization>
> > loadForm();
> > </initialization>
> >
> > here is the function loadForm
> >
> > function loadForm() {   window.alert("example"); }
> > -----------
> >
> > but Tapestry inserts its own:
> >
> > function tapestry_onLoad()
> > {
> >
> > loadForm();
> >
> > document.Form0.inputUserName.focus();    //    <----- what is it?
> > document.Form0.inputUserName.select();   //    <-------|
> > }
> >
> > i want simple :
> >
> > function tapestry_onLoad()
> > {
> >
> > loadForm();
> >
> > }
> >
> >
> >
> >
> >
> >
> > _______________________________________________________________
> >
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -
> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> >
> > _______________________________________________
> > Tapestry-developer mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/tapestry-developer
> >
> 

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to