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
|
 |
 |
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 |
 |
 |
|