Reuse existing functionality to update the curent task via the REST API.
- [Instructor] The very last thing we need to do…to finalize the single-task view is to sort out…the update form function and the logic of the view itself,…so here's what should happen.…When I open an in-progress task, like the one you see here,…I get the form to update outcome and post-task stress level.…When I hit the update task button, the form should be…submitted through the rest API, the task updated,…and the view updated to display the new task…and the completed status view.…Now, here comes the cool part.…You pretty much have all the components for this already,…we just need to string them together in the right order…and with the right logic.…
Let me show you how to do just that, and follow along,…'cause there's a bunch of things happening here…and we're going to redirect a lot of information.…In the previous chapter, we created the functionality…to submit a new post to the rest API.…It sits in this file, edittask.ajax.js.…Now we can re-use some of that code to submit…the update form, so we don't have to work with two different…
- Planning the application
- Extending WordPress with a plugin
- Setting up the standalone application
- Configuring OAuth 2 in WordPress
- Building the task list view
- Building the new task view
- Creating a new task via the REST API
- Displaying conditional content
- Visualizing data using Graph.js
Skill Level Advanced
1. Plan the Application
2. Extend WordPress with a Plugin
3. Set Up the Standalone Application
Review of user flow2m 34s
4. Build the Task List View
5. Build the New Task View
6. Build the Update/View Task View
7. Bonus Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.