-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jeannie -trek #18
base: master
Are you sure you want to change the base?
Jeannie -trek #18
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BJHunnicutt Not bad, you need to do some more work detecting failures, but overall it meets the expectations.
Its just so GREEEEN.
console.log('Failure.'); | ||
}).always(function() { | ||
$('#test-message').text('Something Happened!'); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The user here isn't being told if the request fails, something's wrong here.
if (!$('#trips').is(e.target) && !popup.is(e.target) && popup.has(e.target).length === 0) { | ||
popup.hide(200); | ||
} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice effect
// Print out a list of response links | ||
var successCallback = function (response) { | ||
$('#trips').show(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would show the div after you load it with HTML. Otherwise you'll see if flash with content.
console.log(postUrl); | ||
|
||
alert('Thank you! Your reservation has been submitted!'); | ||
$.post(postUrl, formData, callback); //With this version you can get rid of the ids on the form |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about when the post encounters an error?
No description provided.