Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Jeannie -trek #18

wants to merge 5 commits into from

Conversation

BJHunnicutt
Copy link

No description provided.

Copy link

@CheezItMan CheezItMan left a 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!');
});

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);
}
});

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();

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

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants