-
Notifications
You must be signed in to change notification settings - Fork 2
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
Use AJAX for forms submission, especially editing sports and majors lists #151
Comments
@brownk3 You posted that you were awaiting work, I have added you to this issue, I will also do more research and help you figure out how to perform this task. Please read up on these two articles on ajax and Jquery. Also do your own research as you feel necessary into the concepts. Let me know when you have done this and are ready to move on. |
@Weintraubm I'm sorry that I took so long to follow up on this. I have been aware of it and I had read the two articles you had provided, but I didn't realize until recently that you wanted me to let you know when I'm ready to move on. Since Professor Mattingly mentioned us moving to "Fetch," is there anything we need to change, and what do we need to do to proceed? |
@brownk3 I'd suggest looking at the POST with fetch example about halfway thru this article: https://www.geeksforgeeks.org/get-and-post-method-using-fetch-api/
I can help with whichever of those once you have something that is sending requests to the server. |
@brownk3 I was looking at the changes I needed to make for you, when I remembered option 1 above. That requires no server changes, so let's go that way. Your
when the user clicks on an empty checkbox (changing it to be marked). The The URL is |
@brownk3 I just realized something. The button's |
Currently, the sports and majors list pages contain multiple forms behind the scenes-- one for each individual record. Click a checkbox submits the form to update that record, and the same URL is reloaded, reflecting the update. While this happens quickly enough to look okay, the better way to do this is to submit the update using AJAX so that the server-side data is modified, but there is no reload of the page.
The text was updated successfully, but these errors were encountered: