FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Cursor to 1st fllable field?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Cursor to 1st fllable field? [message #170109 is a reply to message #170100] Sun, 10 October 2010 19:53 Go to previous messageGo to previous message
Beauregard T. Shagnas is currently offline  Beauregard T. Shagnas
Messages: 154
Registered: September 2010
Karma:
Senior Member
Twayne wrote:

> PHP-HTML forms:
> How do I preset the cursor to the first fillable field on a .php page?
> I can't figure out how to do it in PHP OR HTML! ...

As already said, you'd need JavaScript. [1]

However, please don't subject your visitors to that sillyness. A problem
results on pages that take awhile to load, or for people with slow
connections. The page begins loading ... visitor sees first field ...
clicks in it ... types ... tabs to second field ... page is still
loading ... types ... page finally finishes loading ... THEN your
JavaScript finally fires and moves the cursor back to the first field,
infuriating the visitor.

[1] Your google must be broken. The very first result for googling:
move cursor to first web form field
gives you the answer, with an example (note how it fails if JavaScript
is disabled). But, hey, then you wouldn't have learned you shouldn't do
it in the first place.

--
-bts
-Four wheels carry the body; two wheels move the soul
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: Adding MSSQL support to a MySQL/Postgres script
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 23:27:18 GMT 2024

Total time taken to generate the page: 0.04907 seconds