TPS 15
- Due Oct 20, 2020 by 9am
- Points 1
- Submitting a file upload
- Available after Oct 19, 2020 at 9am
Think
Insert a new row just below the header in the table in your TPS Google Doc. Fill in the first two columns. Add your response to the problem below in the "Think"column.
Consider this AJAX statement. What will be displayed to the console if the user credentials are incorrect (e.g., the username doesn't exist of the password doesn't match the one on record)? Assume that failure to authenticate results in the server returning the JSON: {"success": false, "error": "Incorrect username or password."}.
$.ajax({
method: 'post',
url: 'api.php',
data: {action: 'signin', username: $username.val(), password: $password.val},
success: function(data){
if(data.success){
console.log('Signed in!');
} else {
console.log('Couldn't sign in!');
}
},
error: function(jqXHR, status, error){
console.log(error);
}
}
Pair
If you are joining the class live (in person or over Zoom), pair up with someone when asked to do so—please use Discord or your preferred means of interacting with someone to share your answers (please see the announcement with details about Discord). Settle on an answer between to two or three of you and put that answer down in your "Pair" column.
Share
Regardless of whether or not you are attending live, one person from your pair group should add your answer to the "TPS class share Links to an external site." document (make sure you're logged into your Endicott gmail account).
Submit
Finally, submit your personal TPS Google doc to this assignment.
Rubric
Criteria | Ratings | ||
---|---|---|---|
You uploaded your copy of the TPS Google doc
|
|
||
You made a reasonable attempt at the "thinking" portion and this was clearly marked on your document
|
|
||
You made a reasonable attempt at the "sharing" portion and this was clearly marked on your document
|
|
||
|