|
|
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
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. - Show user the data field normally (for instance: the title of a picture)
- When mouse rolls over that title, make the background of the word yellow
- 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
- A user can rename the picture and then push 'save.'
- Run a little script that updates the name into the database
- Remove the input box and the buttons and return to the original title display (updated with new title).
|
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
|