Learn to write PHP code that will respond to an Ajax request by returning JSON. JSON is useful for returning structured or labeled data. See how PHP’s json_encode function can make generating valid JSON easy.
If we're only passing back a single item,…like a bit of text or a bit of HTML,…then it makes sense to do it that way,…but if we want to pass it back multiple pieces of data,…then JSON is probably the way we want to go.…The way that we would write JSON data in our PHP page…is the same as we did for HTML.…You write JSON in order to return JSON.…Whatever you put in that page, is what's going to get returned.…Now, we're not actually returning JSON,…
- What is Ajax?
- Creating Ajax requests and responses
- Monitoring Ajax request state and events
- Responding to Ajax requests with HTML and JSON
- Building Ajax buttons
- Submitting forms with Ajax
- Implementing infinite scrolling
- Adding autosuggestions to text fields
Skill Level Intermediate
1. Ajax Defined
What is Ajax?5m 34s
2. Ajax Client
3. PHP Server
4. Ajax Button
5. Ajax Form Submission
6. Infinite Scrolling
7. Search Autosuggest
- 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.