[pmwiki-users] Request for ideas -- edit page improvements

Patrick R. Michaud pmichaud at pobox.com
Mon Feb 7 12:08:31 CST 2005


On Mon, Feb 07, 2005 at 05:49:33PM +0000, Hans wrote:
> Monday, February 7, 2005, 5:27:33 PM, Patrick wrote:
> > I haven't found a good (browser-independent) mechanism for getting
> > the cursor into the password field.
> 
> tabindex='1' in the input tag of the form:
>   <p><b>Password required</b></p>
>       <form name='authform' action='{$_SERVER['REQUEST_URI']}' method='post'>
>         Password: <input tabindex='1' type='password' name='authpw' value='' />
>         <input type='submit' value='OK' /></form>
> and in the skin template:
>    <body onLoad="self.focus(); document.authform.authpw.focus()" >

Placing that "onLoad" component in the skin template (for all
pages, including those that do not have authform or authform.authpw 
components) somehow seems *totally wrong* to me.  And changing the 
authentication form function to directly modify the <body> tag doesn't 
make me feel any better either.

The best I've come up with is to add a $BodyOnLoad variable that
the authform and other functions can modify, but even so it seems like
there ought to be a better solution than this.

Pm



More information about the pmwiki-users mailing list