Re: Re: cursor focus
| From: | Steven Walker | Date: | Sun, 03 Mar 2002 22:16:52 +0000 |
| Subject: | Re: Re: cursor focus | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87007@lists.php.net to get a copy of this message | ||
If you -could- use Javascript, it looks something like this:
document.formName.textfieldName.focus()
Steven J. Walker
Walker Effects
www.walkereffects.com
steve@walkereffects.com
On Sunday, March 3, 2002, at 12:55 PM, Markas wrote:
Hi, PHP will do NOTHING with cursor position in your page, because it's running on server. Perhaps what you've read is generating some Javascript (which actually places the cursor) with PHP... Hmmm, if you are not running Javascript, maybe an attribute TABINDEX, which almost every html tag has, would help, but sorry if i'm mistaken, didnt check that... Ralph Jarvis <jarvis@mdc-tech.gnb.ca> wrote in message news:20020303130005.35413.qmail@pb1.pair.com...I am not running Javascript, just PHP/HTML... THe particular script I am having problems with has several decisionpointsand includes which I think is confusing the placement of the cursor "Gaylen Fraley" <gfraley5@earthlink.net> wrote in message news:20020303043211.39695.qmail@pb1.pair.com...aThis is not a php question. It is a JavaScript issue. You need to addthiscode to the bottom of your page: <script>document.forms[0].text_box_name.focus();</script> -- Gaylen PHP KISGB v4.0.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/ "Ralph Jarvis" <jarvis@mdc-tech.gnb.ca> wrote in message news:20020303011853.59219.qmail@pb1.pair.com...This is really a newbie question, but here goes..... I am running PHP4 with Apache on Redhat 6.2. I am sure I read this somewheres, but can't find it again. When I opennotwebpage in a small password application that I wrote, the cursor isontothe first text box I need to fill in, I need to click on the text box-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpbegin typing. How do I get the cursor to "focus" on this text box? Many thanks in advance Ralph