[PHP] Re: cursor focus

2002-03-03 Thread Ralph Jarvis

I am not running Javascript, just PHP/HTML...
THe particular script I am having problems with has several decision points
and includes which I think is confusing the placement of the cursor


Gaylen Fraley [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED];
 This is not a php question. It is a JavaScript issue.  You need to add
this
 code 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 [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED];
  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 open a
  webpage in a small password application that I wrote, the cursor is not
on
  the first text box I need to fill in, I need to click on the text box to
  begin typing. How do I get the cursor to focus on this text box?
 
  Many thanks in advance
 
  Ralph
 
 
 





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: cursor focus

2002-03-03 Thread Thomas Seifert

yeah, but what you want to do can only be accomplished with JavaScript.
PHP is a serverside language and you need a clientside-lang like JS.

Thomas

Ralph Jarvis wrote:
 I am not running Javascript, just PHP/HTML...
 THe particular script I am having problems with has several decision points
 and includes which I think is confusing the placement of the cursor
 
 
 Gaylen Fraley [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED];
 
This is not a php question. It is a JavaScript issue.  You need to add

 this
 
code 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 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED];

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 open a
webpage in a small password application that I wrote, the cursor is not

 on
 
the first text box I need to fill in, I need to click on the text box to
begin typing. How do I get the cursor to focus on this text box?

Many thanks in advance

Ralph





 
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: cursor focus

2002-03-03 Thread Gaylen Fraley

Well, unless you've disabled JavaScript in your browser, you are running it.

--
Gaylen
PHP KISGB v4.0.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/

Ralph Jarvis [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED];
 I am not running Javascript, just PHP/HTML...
 THe particular script I am having problems with has several decision
points
 and includes which I think is confusing the placement of the cursor


 Gaylen Fraley [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED];
  This is not a php question. It is a JavaScript issue.  You need to add
 this
  code 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 [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED];
   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 open
a
   webpage in a small password application that I wrote, the cursor is
not
 on
   the first text box I need to fill in, I need to click on the text box
to
   begin typing. How do I get the cursor to focus on this text box?
  
   Many thanks in advance
  
   Ralph
  
  
  
 
 





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: cursor focus

2002-03-03 Thread Markas

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 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED];
 I am not running Javascript, just PHP/HTML...
 THe particular script I am having problems with has several decision
points
 and includes which I think is confusing the placement of the cursor


 Gaylen Fraley [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED];
  This is not a php question. It is a JavaScript issue.  You need to add
 this
  code 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 [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED];
   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 open
a
   webpage in a small password application that I wrote, the cursor is
not
 on
   the first text box I need to fill in, I need to click on the text box
to
   begin typing. How do I get the cursor to focus on this text box?
  
   Many thanks in advance
  
   Ralph
  
  
  
 
 





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: cursor focus

2002-03-03 Thread Steven Walker

If you -could- use Javascript, it looks something like this:
document.formName.textfieldName.focus()

Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]

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 [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED];
 I am not running Javascript, just PHP/HTML...
 THe particular script I am having problems with has several decision
 points
 and includes which I think is confusing the placement of the cursor


 Gaylen Fraley [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED];
 This is not a php question. It is a JavaScript issue.  You need to add
 this
 code 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 [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED];
 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 
 open
 a
 webpage in a small password application that I wrote, the cursor is
 not
 on
 the first text box I need to fill in, I need to click on the text box
 to
 begin typing. How do I get the cursor to focus on this text box?

 Many thanks in advance

 Ralph










 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: cursor focus

2002-03-02 Thread Gaylen Fraley

This is not a php question. It is a JavaScript issue.  You need to add this
code 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 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED];
 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 open a
 webpage in a small password application that I wrote, the cursor is not on
 the first text box I need to fill in, I need to click on the text box to
 begin typing. How do I get the cursor to focus on this text box?

 Many thanks in advance

 Ralph






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php