RE: Set focus on a CFINPUT field

2002-04-18 Thread David DiPietro

Try setting it through a function.
That is how I do onload events.

script language=Javascript
function focusme()
{
document.PracticeDetail.PName.focus();
}
/script

BODY onload='focusme()' bgcolor=white



-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:52 AM
To: CF-Talk
Subject: Set focus on a CFINPUT field


Can someone point me to how to properly set focus on a CFINPUT field?

I have tried document.FORMNAME.FIELDNAME.focus();

and it just does not acknowledge the code.

document.FORMNAME.FIELDNAME.VALUE will give me the preset value that I set for
the field.

Thanks in Advance

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
[EMAIL PROTECTED]

CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for the use of the
individual or entity to which it is addressed.  This e-mail may contain
information that is privileged, confidential, and/or personal. If the reader of
this message is not the intended recipient (or the employee or agent responsible
to deliver it to the intended recipient), you are hereby notified that any
dissemination, distribution, or  copying of this communication is prohibited.
If you have received this communication in error, please notify us at the email
listed above.


__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Set focus on a CFINPUT field

2002-04-18 Thread Ryan Pieszak

Larry,

Try this syntax:
document.FORMNAME.elements['FIELD_NAME'].focus();

Ryan Pieszak

-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 9:52 AM
To: CF-Talk
Subject: Set focus on a CFINPUT field


Can someone point me to how to properly set focus on a CFINPUT field?

I have tried document.FORMNAME.FIELDNAME.focus();

and it just does not acknowledge the code.

document.FORMNAME.FIELDNAME.VALUE will give me the preset value that I set
for
the field.

Thanks in Advance

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
[EMAIL PROTECTED]

CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for the use of the
individual or entity to which it is addressed.  This e-mail may contain
information that is privileged, confidential, and/or personal. If the reader
of
this message is not the intended recipient (or the employee or agent
responsible
to deliver it to the intended recipient), you are hereby notified that any
dissemination, distribution, or  copying of this communication is
prohibited.
If you have received this communication in error, please notify us at the
email
listed above.


__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Set focus on a CFINPUT field

2002-04-18 Thread Larry Juncker

I have tried that also.  Exact code as you have written below.
It appears that the ColdFusion javascript doesn't allow the hardwritten code to
populate.

-Original Message-
From: David DiPietro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:00 AM
To: CF-Talk
Subject: RE: Set focus on a CFINPUT field


Try setting it through a function.
That is how I do onload events.

script language=Javascript
function focusme()
{
document.PracticeDetail.PName.focus();
}
/script

BODY onload='focusme()' bgcolor=white



-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:52 AM
To: CF-Talk
Subject: Set focus on a CFINPUT field


Can someone point me to how to properly set focus on a CFINPUT field?

I have tried document.FORMNAME.FIELDNAME.focus();

and it just does not acknowledge the code.

document.FORMNAME.FIELDNAME.VALUE will give me the preset value that I set for
the field.

Thanks in Advance

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
[EMAIL PROTECTED]

CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for the use of the
individual or entity to which it is addressed.  This e-mail may contain
information that is privileged, confidential, and/or personal. If the reader of
this message is not the intended recipient (or the employee or agent responsible
to deliver it to the intended recipient), you are hereby notified that any
dissemination, distribution, or  copying of this communication is prohibited.
If you have received this communication in error, please notify us at the email
listed above.



__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Set focus on a CFINPUT field

2002-04-18 Thread Larry Juncker

Still to no avail

-Original Message-
From: Ryan Pieszak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:06 AM
To: CF-Talk
Subject: RE: Set focus on a CFINPUT field


Larry,

Try this syntax:
document.FORMNAME.elements['FIELD_NAME'].focus();

Ryan Pieszak

-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 9:52 AM
To: CF-Talk
Subject: Set focus on a CFINPUT field


Can someone point me to how to properly set focus on a CFINPUT field?

I have tried document.FORMNAME.FIELDNAME.focus();

and it just does not acknowledge the code.

document.FORMNAME.FIELDNAME.VALUE will give me the preset value that I set
for
the field.

Thanks in Advance

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
[EMAIL PROTECTED]

CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for the use of the
individual or entity to which it is addressed.  This e-mail may contain
information that is privileged, confidential, and/or personal. If the reader
of
this message is not the intended recipient (or the employee or agent
responsible
to deliver it to the intended recipient), you are hereby notified that any
dissemination, distribution, or  copying of this communication is
prohibited.
If you have received this communication in error, please notify us at the
email
listed above.



__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Set focus on a CFINPUT field

2002-04-18 Thread mynews

Right, you need to do it as a function in an onLoad event because 
if you don't it will immediately look for that formfield before 
it exists. Onload waits until the page is fully loaded before 
executing the function.

BJ

= = = Original message = = =

Try setting it through a function.
That is how I do onload events.

script language=Javascript
function focusme()

~document.PracticeDetail.PName.focus();

/script

BODY onload='focusme()' bgcolor=white



-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:52 AM
To: CF-Talk
Subject: Set focus on a CFINPUT field


Can someone point me to how to properly set focus on a CFINPUT 
field?

I have tried document.FORMNAME.FIELDNAME.focus();

and it just does not acknowledge the code.

document.FORMNAME.FIELDNAME.VALUE will give me the preset value 
that I set for
the field.

Thanks in Advance

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
[EMAIL PROTECTED]

CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for 
the use of the
individual or entity to which it is addressed.  This e-mail may 
contain
information that is privileged, confidential, and/or personal. 
If the reader of
this message is not the intended recipient (or the employee or 
agent responsible
to deliver it to the intended recipient), you are hereby notified 
that any
dissemination, distribution, or  copying of this communication 
is prohibited.
If you have received this communication in error, please notify 
us at the email
listed above.



__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Set focus on a CFINPUT field

2002-04-18 Thread Ryan Pieszak

Larry,
This is the exact code we use for out logon screen:

SCRIPT FOR=window EVENT=onload LANGUAGE=JScript
cfoutputdocument.Logon.elements['Username'].focus();/cfoutput
/SCRIPT

Been working for years.
Ryan Pieszak

-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:11 AM
To: CF-Talk
Subject: RE: Set focus on a CFINPUT field


I have tried that also.  Exact code as you have written below.
It appears that the ColdFusion javascript doesn't allow the hardwritten code
to
populate.

-Original Message-
From: David DiPietro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:00 AM
To: CF-Talk
Subject: RE: Set focus on a CFINPUT field


Try setting it through a function.
That is how I do onload events.

script language=Javascript
function focusme()
{
document.PracticeDetail.PName.focus();
}
/script

BODY onload='focusme()' bgcolor=white



-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:52 AM
To: CF-Talk
Subject: Set focus on a CFINPUT field


Can someone point me to how to properly set focus on a CFINPUT field?

I have tried document.FORMNAME.FIELDNAME.focus();

and it just does not acknowledge the code.

document.FORMNAME.FIELDNAME.VALUE will give me the preset value that I set
for
the field.

Thanks in Advance

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
[EMAIL PROTECTED]

CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for the use of the
individual or entity to which it is addressed.  This e-mail may contain
information that is privileged, confidential, and/or personal. If the reader
of
this message is not the intended recipient (or the employee or agent
responsible
to deliver it to the intended recipient), you are hereby notified that any
dissemination, distribution, or  copying of this communication is
prohibited.
If you have received this communication in error, please notify us at the
email
listed above.




__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Set focus on a CFINPUT field

2002-04-18 Thread mynews

ColdFusion does not play a roll in this. Check the resulting 
html. Does the form have a name? Does the field have a name? 
Check your CaSe, JavaScrIpt is cAsE senSative.

BJ

= = = Original message = = =

I have tried that also.  Exact code as you have written below.
It appears that the ColdFusion javascript doesn't allow the hardwritten 
code to
populate.

-Original Message-
From: David DiPietro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:00 AM
To: CF-Talk
Subject: RE: Set focus on a CFINPUT field


Try setting it through a function.
That is how I do onload events.

script language=Javascript
function focusme()

~document.PracticeDetail.PName.focus();

/script

BODY onload='focusme()' bgcolor=white



-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:52 AM
To: CF-Talk
Subject: Set focus on a CFINPUT field


Can someone point me to how to properly set focus on a CFINPUT 
field?

I have tried document.FORMNAME.FIELDNAME.focus();

and it just does not acknowledge the code.

document.FORMNAME.FIELDNAME.VALUE will give me the preset value 
that I set for
the field.

Thanks in Advance

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
[EMAIL PROTECTED]

CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for 
the use of the
individual or entity to which it is addressed.  This e-mail may 
contain
information that is privileged, confidential, and/or personal. 
If the reader of
this message is not the intended recipient (or the employee or 
agent responsible
to deliver it to the intended recipient), you are hereby notified 
that any
dissemination, distribution, or  copying of this communication 
is prohibited.
If you have received this communication in error, please notify 
us at the email
listed above.




__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Set focus on a CFINPUT field

2002-04-18 Thread Matthew R. Small

What are you using the cfinput for?  You might be able to write your own
function that does the trick as well and still allows you to focus on
the textbox.  Also, there's no reason that cf generated javascript works
any different that that you write on your own.  Can we see the HTML code
for the generated page?

- Matt Small


-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 18, 2002 11:11 AM
To: CF-Talk
Subject: RE: Set focus on a CFINPUT field

I have tried that also.  Exact code as you have written below.
It appears that the ColdFusion javascript doesn't allow the hardwritten
code to
populate.

-Original Message-
From: David DiPietro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:00 AM
To: CF-Talk
Subject: RE: Set focus on a CFINPUT field


Try setting it through a function.
That is how I do onload events.

script language=Javascript
function focusme()
{
document.PracticeDetail.PName.focus();
}
/script

BODY onload='focusme()' bgcolor=white



-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:52 AM
To: CF-Talk
Subject: Set focus on a CFINPUT field


Can someone point me to how to properly set focus on a CFINPUT field?

I have tried document.FORMNAME.FIELDNAME.focus();

and it just does not acknowledge the code.

document.FORMNAME.FIELDNAME.VALUE will give me the preset value that I
set for
the field.

Thanks in Advance

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
[EMAIL PROTECTED]

CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for the use of
the
individual or entity to which it is addressed.  This e-mail may contain
information that is privileged, confidential, and/or personal. If the
reader of
this message is not the intended recipient (or the employee or agent
responsible
to deliver it to the intended recipient), you are hereby notified that
any
dissemination, distribution, or  copying of this communication is
prohibited.
If you have received this communication in error, please notify us at
the email
listed above.




__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Set focus on a CFINPUT field

2002-04-18 Thread Larry Juncker

I am wondering if my problem is that I am including the CFFORM in a CFINCLUDE
for a fuseaction of  fuseaction=login.login

Could this somehow not be transferring properly?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:13 AM
To: CF-Talk
Subject: RE: Set focus on a CFINPUT field


Right, you need to do it as a function in an onLoad event because
if you don't it will immediately look for that formfield before
it exists. Onload waits until the page is fully loaded before
executing the function.

BJ

= = = Original message = = =

Try setting it through a function.
That is how I do onload events.

script language=Javascript
function focusme()

~document.PracticeDetail.PName.focus();

/script

BODY onload='focusme()' bgcolor=white



-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:52 AM
To: CF-Talk
Subject: Set focus on a CFINPUT field


Can someone point me to how to properly set focus on a CFINPUT
field?

I have tried document.FORMNAME.FIELDNAME.focus();

and it just does not acknowledge the code.

document.FORMNAME.FIELDNAME.VALUE will give me the preset value
that I set for
the field.

Thanks in Advance

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
[EMAIL PROTECTED]

CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for
the use of the
individual or entity to which it is addressed.  This e-mail may
contain
information that is privileged, confidential, and/or personal.
If the reader of
this message is not the intended recipient (or the employee or
agent responsible
to deliver it to the intended recipient), you are hereby notified
that any
dissemination, distribution, or  copying of this communication
is prohibited.
If you have received this communication in error, please notify
us at the email
listed above.




__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Set focus on a CFINPUT field

2002-04-18 Thread Larry Juncker

Thank You Ryan

This code worked absolutely perfectly on all three browsers.

-Original Message-
From: Ryan Pieszak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:15 AM
To: CF-Talk
Subject: RE: Set focus on a CFINPUT field


Larry,
This is the exact code we use for out logon screen:

SCRIPT FOR=window EVENT=onload LANGUAGE=JScript
cfoutputdocument.Logon.elements['Username'].focus();/cfoutput
/SCRIPT

Been working for years.
Ryan Pieszak

-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:11 AM
To: CF-Talk
Subject: RE: Set focus on a CFINPUT field


I have tried that also.  Exact code as you have written below.
It appears that the ColdFusion javascript doesn't allow the hardwritten code
to
populate.

-Original Message-
From: David DiPietro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:00 AM
To: CF-Talk
Subject: RE: Set focus on a CFINPUT field


Try setting it through a function.
That is how I do onload events.

script language=Javascript
function focusme()
{
document.PracticeDetail.PName.focus();
}
/script

BODY onload='focusme()' bgcolor=white



-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:52 AM
To: CF-Talk
Subject: Set focus on a CFINPUT field


Can someone point me to how to properly set focus on a CFINPUT field?

I have tried document.FORMNAME.FIELDNAME.focus();

and it just does not acknowledge the code.

document.FORMNAME.FIELDNAME.VALUE will give me the preset value that I set
for
the field.

Thanks in Advance

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
[EMAIL PROTECTED]

CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for the use of the
individual or entity to which it is addressed.  This e-mail may contain
information that is privileged, confidential, and/or personal. If the reader
of
this message is not the intended recipient (or the employee or agent
responsible
to deliver it to the intended recipient), you are hereby notified that any
dissemination, distribution, or  copying of this communication is
prohibited.
If you have received this communication in error, please notify us at the
email
listed above.





__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists