Question: What are some real life applications of jQuery? Name at least two you can think of
- Form Validation: Validate user input on the client side before submitting the form to the server
- Slideshows, galleries, etc.: Create image galleries and sliders on websites with animation capabilities make it easy to implement features like image slideshows and lightboxes
popcorn hack: talk about usage of one of four elements of CRUD from your project in tri 1. Focus on how CRUD was implemented.
- My project last trimester was a JFreechart implementation where users can input a number and it creates a dataset in the backend, this employed the ‘R’ functionality of CRUD as the server has to read the user input in order to create a real-time graph.
Free Response and MCQ
- What does CRUD stand for?
- Create
- Read
- Update
- Delete
- What are the HTTP verbs that are associated with each CRUD action?
- C - POST
- R - GET
- U - UPDATE
- D - DELETE
- What is JQuery?
- a library that allows us to use some of JavaScript’s built in functions
- Match A, B, and C into the JQuery event handler for a data table
- A: ‘click’
- B: ‘.delete-btn’
- C: ‘#data-table’
$(???).on(???, ???, function() { // code });
$(‘.delete-btn’).on(click, #data-table, function() { //code });
- Why do we use JQUERY with CRUD?
- JQuery is frontend, while CRUD is done on backend. Using the combination of the two allows for efficient and simpler backend and frontend code connections.
Finish the update JQUERY function
- its all the way at the end, you should see the green comment
- you can choose to use the two lines I’ve already given or not
ID | Name | Actions |
---|