Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

CHAPTER 4: JavaScript and APIs > Putting It All Together

Putting It All Together

Previously we figured out how to take a normal HTML page and frame it, style it, and use some HTML5 tags to organize it, but it's still just a shell. The steps we need to take from this chapter are:

  • Creating a data API to access server data
  • Using Ajax to retrieve and populate the pages of our mobile app
  • Using the jQuery JavaScript framework for all the heavy work

Let's look again at the data that we want to get from our API. Table 4-2 outlines our API components along with their data types and URLs. I've used PHP to retrieve server-side data for Grandview Ave, but you can use anything you want in your own apps, even HTML.

images

images

So far my directory structure looks like that shown in Figure 4-3.

images

Figure 4-3. Current GrandviewAve directory structure


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial