CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Auto Login after filling Login Form Fields

Print topic Send  topic

Author Message
asoaresfil


Posts: 12
Posted: 02/17/2005, 1:41 AM

Since I am using a CCS aplication "B" comming from application "A",, I get the login and password values and I am able to instantiate the login form with them.

The login screen appears with the form fields filled. OK.

I tryed to generate a jscript command SUBMIT in the before show event, just by checking IF the form is full filled.

See:

//Submit Form
if (not isnull(document.forms["login"].login.value) and not isnull(document.forms["login"].password.value)) {
document.forms["Login"].submit();
}
//End Submit Form

No way. Since it is java, there is some wrong syntac, since the browser ever asks for an "(" (???).

Can somebody help me do define the right syntax in java? ALl I want is to submit the for (or AUTOSUBMIT) if the form fields are already filled.

Thanks in Advance.

Alcides Soares
_________________
Alcides Soares FIlho
c2b@clickstobricks.info
Clicks to Bricks
www.clickstobricks.info

View profile  Send private message
Nicole

Posts: 586
Posted: 02/17/2005, 2:59 AM

Hello,
I played around your code and this one works for me
  
if (! isnull(document.forms["Login"].login.value)) and (! isnull(document.forms["Login"].password.value))   
{  
document.forms["Login"].submit();  
}  
Please keep in mind that JavaScript is case sensitive and "Login" and "login" are different names. Use valid names in your code.

_________________
Regards,
Nicole
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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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