-
Notifications
You must be signed in to change notification settings - Fork 0
AJAX Usage
When viewing another author's page, a button will be displayed in the top right corner that allows the user to perform a follow/friend action.
When the button is clicked, an ajax request is sent to update the relationship state. Upon success, the button will be updated to display the appropriate action (unfollow, unfriend, follow, or accept friend request) for the new state.
Ajax requests are sent each time a button is clicked to update the relationship sent.
Manage Friends: Initially, all friends are displayed with an Unfriend button. When the Unfriend button is selected, an ajax request is sent. Upon success, the button is updated to Accept Friend Request.
Manage Who I Am Following: Initially, all the authors I am following are displayed with an Unfollow button. When the Unfollow button is selected, an ajax request is sent. Upon success, the button is updated to Follow.


