-
Notifications
You must be signed in to change notification settings - Fork 44
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
Rives Wave #3 #45
base: master
Are you sure you want to change the base?
Rives Wave #3 #45
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.
Pretty good work here. I've made a few suggestions, but overall pretty good!
You covered the essential bases.
|
||
var callback = function() { | ||
console.log("Success!"); | ||
}; |
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 also suggest when the post succeeds changing something on the DOM to tell the user about it.
var onTripClicked = function(event) { | ||
event.preventDefault(); | ||
$.get(this.href, onTripDetailsArrived); | ||
}; |
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.
Very good,
I'd also suggest doing something when the request fails.
</script> | ||
<script type="text/javascript" src="scripts.js"></script> | ||
</body> | ||
|
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.
Not bad, but I would suggest more semantic HTML.
@CheezItMan @PilgrimMemoirs