BrycoPC
Verified User
I am trying to login using flash actionscript in my interface. The code im using is as follows:
the code appears to work, goes through checks the SSL Cert then it takes me back to a DA login page. Can anyone tellme whats up with this? and, if someoen can tell me how to fix it to make it work, how can i add FAIL_URL and LOGOUT_URL into the code to make those parse.
Code:
TextField.prototype.onKeyDown = function () {
if (Key.getCode() == Key.ENTER
&& this.pressedOnce == undefined
&& this.isFocused()) {
this.onSubmit();
this.pressedOnce = true;
}
};
TextField.prototype.onKeyUp = function () {
if (Key.getCode() == Key.ENTER) {
this.pressedOnce = undefined;
}
}
TextField.prototype.isFocused = function () {
if (Selection.getFocus() == targetPath(this)) {
return true;
}
return false;
};
// ===============================================
// Implement Form
// ===============================================
// Prepare the data transfer object.
var sender = new LoadVars();
// Activate Enter key for text fields.
username.onSubmit = login;
Key.addListener(username);
password.onSubmit = login;
Key.addListener(password);
// Set submit button handler.
submit.setClickHandler("login");
// Provide custom form submission function.
function login () {
sender.username = username.txt;
sender.password = password.txt;
sender.send("https://www.brycopc.com:2222/CMD_LOGIN", "_self", "POST");
}
the code appears to work, goes through checks the SSL Cert then it takes me back to a DA login page. Can anyone tellme whats up with this? and, if someoen can tell me how to fix it to make it work, how can i add FAIL_URL and LOGOUT_URL into the code to make those parse.