O'Reilly logo

WordPress Mobile Applications with PhoneGap by Yuxian Eugene Liang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Paging through blog posts

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.

Paging across the blog post

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 app_advanced.html file:

<!DOCTYPE HTML> <html> <header> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required