|
|
Registered tutorials: 501 Registered Users: 39483
|
|
Rating: 4.5 out of 2 votes cast
Category: JavaScript Framework
|
AJAX Edit In Place With Prototype
Abstract: How to recreate the Flickr "edit in place" effect using Prototype.
UPDATE Wed 7 Jun 2006 @ 11:45pm : Before you get too attached to what is described here there is a new version you should look at: AJAX Edit In Place With Prototype, Version 0.2.0.
Late last year Drew McLellan posted a great article on 24ways.org called Edit-in-Place with Ajax. Using Flick as an example and Prototype to do the heavy lifting he showed how to edit text inline. Like many other people I’ve been fascinated by this approach to altering text. After playing with Drew’s example off and on I finally sat down and decided to generalize it a bit more to make it easier to use.
Before I get into the code let me say that I’m a complete amateur when it comes to JavaScript. If you are looking for someone with serious JavaScript fu go talk to Simon Willison.
First go get a copy Prototype. Then you’ll need the Edit In Place javascript file. There is an example page that you can play with. I tried to make it as simple as possible while still providing a reasonable amount of flexibility.
|
Reviews:
Rate and Review This Site
No reviews yet
Statistic Information About this Resource:
| Total Hits: |
1318 |
| Unique Hits: |
1156 |
| |
Daily |
Weekly |
Monthly |
| |
Unique |
Total |
Unique |
Total |
Unique |
Total |
| Average |
1.5 |
1.7 |
6.6 |
7 |
32 |
35 |
| Current |
0 |
0 |
10 |
10 |
30 |
32 |
| Previous |
2 |
2 |
11 |
13 |
26 |
28 |
| Mar 19 |
1 |
1 |
9 |
9 |
38 |
38 |
| Mar 18 |
5 |
5 |
6 |
6 |
33 |
38 |
| Mar 17 |
0 |
0 |
6 |
6 |
34 |
40 |
| Mar 16 |
2 |
2 |
9 |
10 |
40 |
43 |
| Mar 15 |
3 |
4 |
5 |
6 |
24 |
25 |
| Mar 14 |
0 |
0 |
0 |
0 |
26 |
28 |
| Mar 13 |
0 |
0 |
10 |
10 |
38 |
41 |
| Mar 12 |
2 |
3 |
0 |
0 |
31 |
37 |
| Highest |
9 |
9 |
29 |
35 |
74 |
80 |
|
|
|
Script Execution Time: 0.26565 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2
|