-
-
Save anonymous/88b07034fe16b1444c23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Authenticate submit | |
*/ | |
Authenticate.prototype.handleSubmit = function (event) { | |
event.preventDefault(); | |
this.submit.setAttribute('disabled', 'true'); | |
this.log('handleSubmit', event); | |
this.xhr = new XMLHttpRequest(); | |
this.xhr.onload = (this.handleResult).bind(this); | |
this.xhr.open(this.form.getAttribute('method'), this.form.getAttribute('action'), true); | |
this.xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); | |
this.xhr.send(new FormData(this.form)); | |
this.displayNotice('Check creditentials.'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment