-
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
Jessica's Trek #44
base: master
Are you sure you want to change the base?
Jessica's Trek #44
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.
Well done, a few comments in here, and you probably should have some messages when the API requests fail.
Overall pretty nice.
'url("http://images.nationalgeographic.com/wpf/media-live/photos/000/210/custom/21080_1600x1200-wallpaper-cb1318527290.jpg")', | ||
'url("http://www.thedesignwork.com/wp-content/uploads/2011/03/rock-fort-india-national-geographic-wallpaper.jpg")' | ||
); | ||
|
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 rotating background
var data = $(this).serialize(); | ||
$.post(reserveUrl, data, callback); | ||
$('input').val(''); | ||
}); |
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 on failures?
$('#cost').text('Cost: $' + trip.cost); | ||
}).fail(function(){ | ||
alert("failed"); | ||
}); |
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.
Good that you're giving feedback on failsures.
$('#load').hide(); //hide trip load button | ||
$('header').show(); //show header | ||
$.get(url, successCallback); | ||
clearInterval(refresh); //backgrounds stop transitioning when button is pressed |
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 get request fails?
@CheezItMan