We have seen how to build
a really simple and straightforward example that utilizes a straightforward
GET statement to retrieve the data that we have created on our WordPress site.
In this slightly more advanced
example, we will be building on the concepts that we have used in the previous example. In a previous example, we used jQuery's
ajax method to load JSON content into the web application. In this example we will be using it in a similar manner, but we will be adding additional functionality we will enable paging of blog postings in this application.
Copy and paste the following code into the
<!DOCTYPE HTML> <html> <header> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> ...