>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

Create flickr-like Editing Fields Using AJAX & CSS - editing php code table row javascript input ajax

 
Registered tutorials: 501
Registered Users: 33125



Rating: 0 out of 0 votes cast


  
Category: Ajax and PHP

Create flickr-like Editing Fields Using AJAX & CSS

Digg this   Post to del.icio.us

Abstract: Tutorial on how to emulate flickr's "edit-in-place." Use CSS, AJAX and PHP to make this really cool effect in almost no time to help users intuitively work on your web page.

On one of my web projects I've been working on, we needed to allow the user to edit some information on their profile page. I could have written an HTML form page and then written the php database updater, but why use such outdated interfaces? This is the era of AJAX, and you can't deny it. AJAX is pretty sweet. I decided on using flickr-like editing boxes to do the job. If you are not familiar with how flickr handles editing data, here's a short summary.

  1. Show user the data field normally (for instance: the title of a picture)
  2. When mouse rolls over that title, make the background of the word yellow
  3. If the user clicks on the word, change that word to a input box with the word in it. Also show a 'save' and 'cancel' button
  4. A user can rename the picture and then push 'save.'
  5. Run a little script that updates the name into the database
  6. Remove the input box and the buttons and return to the original title display (updated with new title).

Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 384
Unique Hits: 311


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0.3 0.3 1.1 1.1 5.3 6.4
Current 0 0 0 0 0 0
Previous 0 0 2 2 8 8
Nov 29 0 0 2 2 13 17
Nov 28 1 1 0 0 3 4
Nov 27 0 0 2 2 1 1
Nov 26 0 0 0 0 8 10
Nov 25 0 0 2 2 4 5
Nov 24 0 0 0 0 0 0
Nov 23 1 1 0 0 7 9
Nov 22 1 1 3 3 9 10
Highest 6 9 17 25 48 62


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