CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Wits end: Javascript focus changes inside CCS generated code

Print topic Send  topic

Author Message
FrankR

Posts: 154
Posted: 10/05/2006, 4:10 PM


I don't know - it must be me. Some of this stuff was never this hard elsewhere.
I have Javascripted focus changes many times in my other .NET apps.
Nothing works for me here.

If you have the CCS Builder generate a Login screen and tell it to set focus to the login field,
it generates this Javascript:

if (theForm.Login1login) theForm.Login1login.focus();

Well, Login1login should be the name of an input field I find defined in the HTML, but it's not there. Instead, the HTML has a definition for the input field login_Name.

Can someone tell me how that is working, since that will tell me how I can code my own focus changes for these apps?

_________________
FR
View profile  Send private message
Wkempees
Posted: 10/06/2006, 12:10 AM

Steps taken:
Open Help File
Search
"Focus"

Revealed:
In your form, DesignMode Properties, ClientSide events.
Add action "SetFocus", enter Formname, select Input from Dropdownlist.

That should do it.
It also has an example of JS code.

The thing is I already knew the action to be available and I know the
Login to be a 'special' case.

Walter


FrankR

Posts: 154
Posted: 10/06/2006, 3:42 AM

Quote Wkempees:
Steps taken:
Open Help File
Search
"Focus"

Revealed:
In your form, DesignMode Properties, ClientSide events.
Add action "SetFocus", enter Formname, select Input from Dropdownlist.

That should do it.
It also has an example of JS code.

The thing is I already knew the action to be available and I know the
Login to be a 'special' case.

Walter


Walter - thanks - I'll look again, but yesterday, I looked for a SetFocus action on the client side, and I couldn't find any. [Had a miserable day yesterday, so I maybe I blew by it.]
I'll look again.

Looking at the javascript CCS created from the Builder for a standard login panel, I still have no idea how it is working nor where Login1login is coming from.

_________________
FR
View profile  Send private message

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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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