>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

Developing PHP the Ajax way, Part 1: Getting started - sajax photo output function ajax album php listing

 
Registered tutorials: 501
Registered Users: 33128



Rating: 5 out of 1 votes cast


  
Category: Ajax and PHP

Tags Map

access active add adding ajax album alliance application applications article assumed auto basic blown border box built call called calls change click client code columns complete completed countimages create creating data date dateaugust developerworks developing development directory display div download easily emptyphoto ensure expand expandphp familiar feature figure file fileimagejpg files finally find foobar full function functionality functions gd generate generated getfilelist getimage getimagelink getimagelist getimagesize getmetadata gettable gettablelink give group handler html http ibm id image images implement implementation improve index indexed information input javascript large learn library limitstart limitstep link links list listing main margin metadata method methods navigation node note number open openajax output package padding page pager parameters part passed photo photos php popular previous products project provide px quickly rate read request requests resources response return returns sajax sample script separate series server set show simple simply single solid source standard start step systems table technologies technology thumbnail thumbnails time title toolkit top towindow traditional user version view visit web width window write writing xfoobar xml

Keyword Cloud Navigation Map

Developing PHP the Ajax way, Part 1: Getting started

Digg this   Post to del.icio.us

Abstract: Shows how to create a simple photo album as an online Web application, entirely in PHP and the Simple Ajax Toolkit (Sajax). You'll begin by writing a simple photo album using the standard method of PHP development

Asynchronous JavaScript and XML (Ajax), is arguably the most popular new Web technology. In this two-part "Developing PHP the Ajax way" series, you will create a simple photo album as an online Web application, entirely in PHP and the Simple Ajax Toolkit (Sajax). You'll begin by writing a simple photo album using the standard method of PHP development and later apply Sajax to make it an active Web application.

Creating a simple photo album

In this article, you will create a simple photo album using two methods: a traditional Web application and a Sajax-powered application. You will write an album in PHP that reads the contents of a directory, showing the user a table of thumbnails. If the user clicks a thumbnail, the image will expand to full size. Since you will be writing a traditional application, every click will be a new HTTP request, with parameters being passed as part of the URL.

You will learn how to quickly apply the Sajax library to your album and find out why using Sajax will speed up application development.

Adding a pager table

A user visiting your album will need to have some way to quickly view your photos. Since many large photos cannot be easily viewed on one page, you need to create a pager -- a simple table that displays a few thumbnail images at a time. You will also write navigation to help the user mover forward and backward through the image list.



Figure 1. Pager will provide way to show user photos
Pager will provide way to show user photos

Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 315
Unique Hits: 254


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0.5 0.6 2.4 2.7 5.8 7.6
Current 3 3 3 3 3 3
Previous 0 0 2 3 20 23
Nov 29 0 0 1 1 3 3
Nov 28 0 0 0 0 4 7
Nov 27 0 0 8 8 6 8
Nov 26 0 0 0 0 10 11
Nov 25 1 2 6 8 2 3
Nov 24 0 0 0 0 0 0
Nov 23 1 1 4 4 8 16
Nov 22 0 0 0 0 2 2
Highest 5 10 18 22 81 96


Script Execution Time: 0.89649 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2