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
Switch to threaded view of this topic Create a new topic Submit Reply
Cursor to 1st fllable field? [message #170100] Sun, 10 October 2010 17:39 Go to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
Hi,

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! Have googled, visited php.net
and w3schools with no luck. All I want is to open the page with the cursor
preset in the first input field.
I do not wish to use javascript or Flash to accomplish this unless I
really have to. I've looked at several sites that do it but without result,
which I'm assuming is because they're using php. At least I can't see
anything else referenced.

TIA

Twayne`



--
Life is the only real counselor; wisdom unfiltered
through personal experience does not become a
part of the moral tissue.
Re: Cursor to 1st fllable field? [message #170101 is a reply to message #170100] Sun, 10 October 2010 18:12 Go to previous messageGo to next message
Michael Fesser is currently offline  Michael Fesser
Messages: 215
Registered: September 2010
Karma: 0
Senior Member
.oO(Twayne)

> 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! Have googled, visited php.net
> and w3schools with no luck. All I want is to open the page with the cursor
> preset in the first input field.

This requires JavaScript.

Micha
Re: Cursor to 1st fllable field? [message #170103 is a reply to message #170100] Sun, 10 October 2010 18:28 Go to previous messageGo to next message
sheldonlg is currently offline  sheldonlg
Messages: 166
Registered: September 2010
Karma: 0
Senior Member
On 10/10/2010 1:39 PM, Twayne wrote:
> Hi,
>
> 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! Have googled, visited php.net
> and w3schools with no luck. All I want is to open the page with the cursor
> preset in the first input field.
> I do not wish to use javascript or Flash to accomplish this unless I
> really have to. I've looked at several sites that do it but without result,
> which I'm assuming is because they're using php. At least I can't see
> anything else referenced.
>
> TIA
>
> Twayne`
>
>
>

tabindex?

--
Shelly
Re: Cursor to 1st fllable field? [message #170107 is a reply to message #170100] Sun, 10 October 2010 18:45 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 10/10/2010 1:39 PM, Twayne wrote:
> Hi,
>
> 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! Have googled, visited php.net
> and w3schools with no luck. All I want is to open the page with the cursor
> preset in the first input field.
> I do not wish to use javascript or Flash to accomplish this unless I
> really have to. I've looked at several sites that do it but without result,
> which I'm assuming is because they're using php. At least I can't see
> anything else referenced.
>
> TIA
>
> Twayne`
>
>
>

You can't do it with PHP - PHP can do nothing to affect the browser
except send HTML.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
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 next message
Beauregard T. Shagnas is currently offline  Beauregard T. Shagnas
Messages: 154
Registered: September 2010
Karma: 0
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
Re: Cursor to 1st fllable field? [message #170110 is a reply to message #170100] Sun, 10 October 2010 19:54 Go to previous messageGo to next message
Marious Barrier is currently offline  Marious Barrier
Messages: 25
Registered: September 2010
Karma: 0
Junior Member
On 10/10/2010 02:39 PM, Twayne wrote:
> Hi,
>
> 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! Have googled, visited php.net
> and w3schools with no luck. All I want is to open the page with the cursor
> preset in the first input field.
> I do not wish to use javascript or Flash to accomplish this unless I
> really have to. I've looked at several sites that do it but without result,
> which I'm assuming is because they're using php. At least I can't see
> anything else referenced.

Is this a joke?
Re: Cursor to 1st fllable field? [message #170135 is a reply to message #170100] Mon, 11 October 2010 23:51 Go to previous messageGo to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
In news:i8stnq$rfd$1(at)news(dot)eternal-september(dot)org,
Twayne <nobody(at)devnull(dot)spamcop(dot)net> typed:
> Hi,
>
> 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! Have googled, visited php.net and w3schools with no
> luck. All I want is to open the page with the cursor preset
> in the first input field. I do not wish to use javascript
> or Flash to accomplish this unless I really have to. I've looked at
> several sites that do it but
> without result, which I'm assuming is because they're using
> php. At least I can't see anything else referenced.
>
> TIA
>
> Twayne`

Thanks, all. That's about what I expected but sometimes I miss the most
basic things, so hadda ask.

Twayne
Re: Cursor to 1st fllable field? [message #170136 is a reply to message #170107] Mon, 11 October 2010 23:52 Go to previous message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
In news:i8t1kj$akv$1(at)news(dot)eternal-september(dot)org,
Jerry Stuckle <jstucklex(at)attglobal(dot)net> typed:
> On 10/10/2010 1:39 PM, Twayne wrote:
>> Hi,
>>
>> 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! Have googled, visited php.net and w3schools with no
>> luck. All I want is to open the page with the cursor
>> preset in the first input field. I do not wish to use
>> javascript or Flash to accomplish this unless I really have to. I've
>> looked at several sites that do it
>> but without result, which I'm assuming is because they're
>> using php. At least I can't see anything else referenced.
>>
>> TIA
>>
>> Twayne`

Good Point; so logical NOW<g>!

Twayne`

>>
>>
>>
>
> You can't do it with PHP - PHP can do nothing to affect the
> browser except send HTML.
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Sat Nov 23 05:16:22 GMT 2024

Total time taken to generate the page: 0.03101 seconds