Paige,
I had asked the question originally and with a little bit of help from
everyone I got it to work. Here is what I used:
<script>
<!--
function setfocus() {
document.(form name).(field name).focus();
}
// --></script>
In your body the code should look wxactly like this:
"<body onLoad=setfocus()>"
In the site:
<form action="someaction" method=get name=(form name)>
<input type="text(example)" name="some name">
the most important thing to remember is that since not all browsers will
support javascript you really need to comment out that script. also the
other important thing is to declare your form and filed names.
Good Luck and let me know how it turns out.
Cheers
----Original Message Follows----
From: "Paige Chandler" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: CF-Talk <[EMAIL PROTECTED]>
Subject: Re: Manipulating Cursor Position In Applications
Date: Tue, 31 Oct 2000 20:42:08 -0500
MIME-Version: 1.0
Received: from [207.31.122.140] by hotmail.com (3.2) with ESMTP id
MHotMailBBC8BF7B0075D821EECBCF1F7A8C06EA0; Tue Oct 31 17:40:37 2000
Received: from smtp02.mrf.mail.rcn.net ([207.172.4.61]) by
www.houseoffusion.com (Post.Office MTA v3.5.3 release 223 ID#
0-54969U100L100S0V35) with ESMTP id com for
<[EMAIL PROTECTED]>; Tue, 31 Oct 2000 20:43:04 -0500
Received: from 216-164-230-91.s91.tnt7.lnh.md.dialup.rcn.com
([216.164.230.91] helo=xxx)by smtp02.mrf.mail.rcn.net with smtp (Exim 3.16
#1)id 13qmp6-00001W-00for [EMAIL PROTECTED]; Tue, 31 Oct 2000
20:36:16 -0500
>From [EMAIL PROTECTED] Tue Oct 31 17:42:39 2000
Message-ID: <003101c043a4$f35c1690$0903a8c6@xxx>
References:
<[EMAIL PROTECTED]>
Return-Path: [EMAIL PROTECTED]
Hello Jann,
It appears that you've answered a question I didn't even know how to ask
yet. But I can't quite get it to work. Would you please look at the code
below and tell me what is wrong with it? "CVS3WP02.cfm" is the web page and
"UserId" is the loggon Id field which I would like to receive focus upon the
page loading. TIA.
Regards,
Paige
</BODY>
<Script>
document."CVS3WP02.cfm.UserId".focus()
</script>
</HTML>
----- Original Message -----
From: "Jann VanOver" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, October 31, 2000 5:13 PM
Subject: RE: Manipulating Cursor Position In Applications
> I have found many cases when this doesn't work. I've often gotten errors
> that look like the "onLoad" handler was run before the page finished
> loading. (error says form or field not found). I do NOT trust the
"onLoad"
> handler. In cases like this, I've put the focus statement at the end of
the
> document.
> <html>
> ...
> <body>
> </body>
> <script>
> document.formname.fieldname.focus()
> </script>
> </html>
>
> -----Original Message-----
> From: Evan Lavidor [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 31, 2000 12:35 PM
> To: CF-Talk
> Subject: RE: Manipulating Cursor Position In Applications
>
>
> <body onLoad="document.formname.fieldname.focus();">
>
> > -----Original Message-----
> > From: t nelson [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 31, 2000 2:02 PM
> > To: CF-Talk
> > Subject: Manipulating Cursor Position In Applications
> >
> >
> > Hello All,
> >
> > I have a slight problem on my hands. I am trying to make the
> > cursor default
> > to the beginning of my input fields. For example if a user opens up a
> > <cf_form> page, I want them to be able to begin inputting their
> > data without
> > having to use their mouse to move their cursor into position.
> >
> > Any ideas out there?
> >
> >
> >
_________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
> >
> > Share information about yourself, create your own public profile at
> > http://profiles.msn.com.
> >
> > ------------------------------------------------------------------
> > ------------------------------
> > Archives: http://www.mail-archive.com/[email protected]/
> > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> > or send a message with 'unsubscribe' in the body to
> > [EMAIL PROTECTED]
>
--------------------------------------------------------------------------
--
> --------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send
a
> message with 'unsubscribe' in the body to
[EMAIL PROTECTED]
>
--------------------------------------------------------------------------
----------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send
a message with 'unsubscribe' in the body to
[EMAIL PROTECTED]
>
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]