Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Client-side functionality for the Helpful/Not Helpful buttons #6

Open
NateWr opened this issue Sep 3, 2017 · 1 comment
Open

Client-side functionality for the Helpful/Not Helpful buttons #6

NateWr opened this issue Sep 3, 2017 · 1 comment
Assignees

Comments

@NateWr
Copy link
Owner

NateWr commented Sep 3, 2017

Assigned: @Yjohn

To implement the client-side functionality, you'll need to write everything that happens on the user side when they click the Helpful/Not Helpful buttons, and handle the response from the server.

  • When a user clicks one of the buttons, add an indication that the request is in process. (Read about CSS Animation and look at this loading spinner example).
  • Submit a POST ajax request to /rating containing the data keys entryId and isHelpful.
  • When the response is received from the server, use the data to update the helpful display.

Some resources which might help you:

@NateWr
Copy link
Owner Author

NateWr commented Sep 3, 2017

You'll need to work closely with @khaledkzy because this issue depends on #7.

Yjohn added a commit to Yjohn/cyf-faq-group that referenced this issue Sep 9, 2017
Yjohn added a commit to Yjohn/cyf-faq-group that referenced this issue Sep 14, 2017
sending AJAX request to the route called 'rating' then resiving the change and display all the changes
Yjohn added a commit to Yjohn/cyf-faq-group that referenced this issue Sep 14, 2017
Yjohn added a commit to Yjohn/cyf-faq-group that referenced this issue Sep 14, 2017
sending AJAX request to the route called 'rating' then resiving the change and display all the changes
Yjohn added a commit to Yjohn/cyf-faq-group that referenced this issue Sep 16, 2017
Yjohn added a commit to Yjohn/cyf-faq-group that referenced this issue Sep 28, 2017
Yjohn added a commit to Yjohn/cyf-faq-group that referenced this issue Sep 28, 2017
* helpfullButtons:
  NateWr#6 adding loading animation when the button clicked
  change the variable name for total entiries
Yjohn added a commit to Yjohn/cyf-faq-group that referenced this issue Oct 13, 2017
NateWr added a commit that referenced this issue Oct 15, 2017
#6 created a Client-side functionality for the Helpful and Not Helpfu…
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants