Tuesday, August 8th, 2006

Adding AJAX to a website step by step

Category: PHP, Programming, Toolkit

<>p> In his latest post, HTML_AJAX package developer Joshua Eichorn shares his methods for adding Ajax to an example website (with HTML_AJAX‘s help, of course), and he shows it step-by-step.

When looking at a adding AJAX you have a couple decisions you’ll want to make up front. One is what tools your going to use. In the webthumb case thats pretty easy. Webthumb is a simple PHP app and doesn’t use a framework, so I need a nice general PHP/AJAX framework that is easy to use, HTML_AJAX fits that need.

After picking my tools I need to decide what my goals are. My main focus will be to improve usability, but I also want to use AJAX to make the site seem a bit flashier, so its a bit of a technology demo too.

The Webthumb mentioned there is a pet project of his, allowing for the generation of thumbnails taken directly of websites (more on that here). He uses an updated to this application as his illustration.

He demonstrates the remoting functionality, his use of a class named RequestStatus for finding the status of the Ajax connection, exporting this in the PHP (easy thanks to HTML_AJAX), and make the actual calls to the backend with the newly exported function.

Related Content:

  • Eclipse: Step by Step
    The open source framework Eclipse was developed as a Jave Integrated Development Environment (IDE). This chapter will show you how to create a simple...
  • Basic Database Security: Step by Step
    Use this checklist to ensure you're following the basics for securing database...
  • Basic Database Security: Step by Step
    Use this checklist to ensure you're following the basics for securing database...
  • Step-by-Step Guide: WSUS
    Microsoft's WSUS provides you the benefit of automatically applying the necessary patches your customers need without them having to invest in...
  • In-depth: UC step by step
    B Although organisations are purchasing elements of the unified communications (UC) vision to boost staff productivity in difficult economic times,...

Posted by Chris Cornutt at 1:53 pm
1 Comment

+++--
3.7 rating from 59 votes

1 Comment »

Comments feed TrackBack URI

[...] Ajaxian » Adding AJAX to a website step by step (tags: ajax tutorial php) [...]

Pingback by Collum’s Column » Blog Archive » links for 2006-08-23 — August 23, 2006

Leave a comment

You must be logged in to post a comment.