From the course: jQuery Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Working with different data types - jQuery Tutorial
From the course: jQuery Essential Training
Working with different data types
- [Instructor] So far in this chapter we've seen how to work with plain text data and HTML data, but you can use jQuery and Ajax to work with other kinds of data as well. In fact, you've probably come across XML or JSON data in the past, and that's what we're going to work with in this particular example. Let's open up the DataTypes_start example file. So there's two examples that we're going to build here. One is working with JSON data, and one is working with XML data. And once again, I can't take the time here to go deeply into how the JSON and XML data formats work. There are great courses here on Lynda.com that explain both. What I'm going to show you is how to use jQuery to work with both data types. To do that, I'm going to first show you this testxmldata file I have right here, and you can see that it's a very simple XML structure. There's a name tag, a title tag, and all of that is enclosed in a data tag, and this is the XML file we'll be working with. So let's go back to the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.