CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge -> Programming

 Setting Focus on a field

Print topic Send  topic

Author Message
Will
Posted: 08/18/2004, 6:07 PM

I've tried just about everything and I am having a problem setting the cursor in the login field when the login form opens. I've inserted <body onload="document.form.field.focus();"> into the generated HTML and no go... Anyone know how this is done.

Thanks for the help.
WIll
NR
Posted: 08/22/2004, 7:44 PM

If you generate the Login form using the builder there is an option to set the focus on the login field automatically.

What it do is set up a function in the window.onload event that does this:
if (document.forms["Login"] && document.forms["Login"].login) document.forms["Login"].login.focus();
Will
Posted: 09/02/2004, 9:57 AM

:-) Thanks NR

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.