ID:               20105
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Unknown/Other Function
 Operating System: all
 PHP Version:      4.2.3
 New Comment:

To answer the why: because it's convenient.

As for you javascript:
Forms don't need names. They are accessible (and portably even) via
document.forms[n] where n is a number.

I don't think we should explicetely set focus to the search box for a
very simple reason: google is a search engine. php.net is not.

Setting focus in a site-wide header is counter productive, since it is
set once the page is fully loaded. Due to network congestions, you can
be typing in another formbox already and suddenly you're somewhere
else.

There are already features in the site which allow easy access to
functions, like so:
http://www.php.net/var_export



Previous Comments:
------------------------------------------------------------------------

[2002-10-26 12:13:54] [EMAIL PROTECTED]

Why putting shortcuts on php.net when the basic thing hasn't been done.
Basic thing is like google.com and many others.
First you have to give a name to the search FORM, it hasn't got one at
the moment, give it say MYFORM. The input textfield is actually nammed
pattern.
then use this at the end of your html document :
<script>document.MYFORM.pattern.focus()</script>

this will give the focus to the search box.. honestly php.net I use it
MAINLY for looking up php functions..
I know I could have installed a php help by now. but I suppose am not
alone, potherwise why creating key shortcuts if not to make it more
convenient to frequent web site users ? And if they're frequent it must
be for the same reason as I..

Byebye and thank you so much, I don't know who to thank, but PHP is a
benediction (gift god in english).

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20105&edit=1

Reply via email to