{"id":4805,"date":"2009-11-25T07:00:35","date_gmt":"2009-11-25T14:00:35","guid":{"rendered":"http:\/\/css-tricks.com\/?p=4805"},"modified":"2019-04-09T16:25:52","modified_gmt":"2019-04-09T23:25:52","slug":"app-from-scratch-6-ajax","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/app-from-scratch-6-ajax\/","title":{"rendered":"Creating a Web App from Scratch – Part 6 of 8: Adding AJAX Interactivity"},"content":{"rendered":"

👋 Hey there!<\/strong> We want to give you a heads up that the source code that accompanies this series is no longer available to download. We still think there are valuable bits of information to get from the series, but given that we’re 10+ years down the road, we also think it’s worth considering a modern PHP framework (like Laravel<\/a>) or even a JavaScript framework (like React<\/a> or Vue<\/a>) to create a progressive web app.<\/p>\n

Our developer has already done a massive amount of work turning this idea into a real application. Now let’s make some more for him! The most important part of this app is creating and managing your list. We decided from the get-go that this was going to be an AJAX-y app. We didn’t chose AJAX because it’s a popular buzzword, we chose it because we know it’s the best path toward making a responsive, easy to use, natural feeling application on the web.<\/p>\n

<\/p>\n

\n

Article Series<\/h4>\n
    \n
  1. Planning the App: Basic Idea and Design<\/a><\/li>\n
  2. Planning the App: Database Architecture and Development Approach<\/a><\/li>\n
  3. Designing the App: Workflow Map and Photoshop Design<\/a><\/li>\n
  4. Designing the App: HTML and CSS<\/a><\/li>\n
  5. Developing the App: User Interaction<\/a><\/li>\n
  6. Developing the App: Adding AJAX Interactivity<\/a><\/li>\n
  7. Developing the App: List Interaction<\/a><\/li>\n
  8. Security & The Future<\/a><\/li>\n<\/ol>\n<\/div>\n

    The Big Thing: Saving the List<\/h3>\n

    AJAX allows for us to send requests and get responses from the server without a page refresh. In our app, that functionality is going to be used primarily for saving. Let’s think through each of those times something needs to be saved:<\/p>\n