Book Image

jQuery 2.0 Development Cookbook

By : Leon Revill
Book Image

jQuery 2.0 Development Cookbook

By: Leon Revill

Overview of this book

Table of Contents (17 chapters)
jQuery 2.0 Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Building a complete mobile web app


This recipe shows you how to create a simple but complete web app that allows registered users to write notes that can be accessed on all devices. The notes app extends upon the previous login and register recipe to allow the logged-in user to create and manage a note or a to-do list.

Getting ready

Before you start this recipe, ensure you have completed the previous recipe, Building a complete register and login system. You will still need a web server running PHP and MySQL to complete this recipe.

How to do it…

To create a complete mobile web app that can be accessed on all mobile and desktop devices, perform the following steps:

  1. To store the user-created notes, another database table is required. Use the following SQL code to create a table within the chapter10 database called note:

    CREATE TABLE IF NOT EXISTS `note` (
      `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
      `user_id` bigint(20) unsigned NOT NULL,
      `text` varchar(2048) DEFAULT NULL,
      `added`...