#20105 [Opn]: on php.net why key shorcuts ?
| From: | damiencola at wanadoo dot fr | Date: | Sun, 27 Oct 2002 00:15:37 +0000 |
| Subject: | #20105 [Opn]: on php.net why key shorcuts ? | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-13233@lists.php.net to get a copy of this message | ||
ID: 20105
User updated by: damiencola@wanadoo.fr
Reported By: damiencola@wanadoo.fr
Status: Open
Bug Type: Website problem
Operating System: all
PHP Version: 4.2.3
New Comment:
I knew about forms being accessible by index, but it's easier with name
to understand for those who didn't know about it.
It's possible to put the code right after the closing FORM tag, so the
focus is executed immediatly after the form displays on the page.
As I said, perhaps many people use php.net via this text box, so
perhaps it would be better to have the automatic focus AND the
shortcuts..
Because the shorcuts alone won't help, when this will not be on a news
at the top of the site..
Anyway, you do as you wish and php.net is very well as it is. It was a
suggestion, not even a critic. Have a nice day.
Previous Comments:
------------------------------------------------------------------------
[2002-10-26 17:00:15] sniper@php.net
reclassified.
------------------------------------------------------------------------
[2002-10-26 13:12:57] msopacua@php.net
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
------------------------------------------------------------------------
[2002-10-26 12:13:54] damiencola@wanadoo.fr
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