
2. Create flickr-like Editing Fields Using AJAX & CSS

- 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).
3. Ajax Edit In Place with Yahoo UI API

You’ve probably seen the article at at 24 ways about Ajax in-place editing, but honestly the javascript they code up there seems quite hacky and un-standards-compliant. Instead, we’re going to use the Yahoo UI Library (YUI, YUI-EXT), a modern cross-browser javascript toolkit, to accomplish the same results with less hassle, and more power.

His topic was Edit-in-Place with Ajax, which of course is when you can click on certain areas, and they change in front of you to be editable text boxes (or inline editable divs).

5. How does in place editing work?

Normal flow is this. User clicks text on web page. Block of text becomes a form. User edits contents and presses submit button. New text is sent to webserver and saved. Form becomes normal text again.

Back on day one we looked at using the Prototype library to take all the hard work out of making a simple Ajax call. While that was fun and all, it didn’t go that far towards implementing something really practical. We dipped our toes in, but haven’t learned to swim yet.
So here is swimming lesson number one. Anyone who’s used Flickr to publish their photos will be familiar with the edit-in-place system used for quickly amending titles and descriptions on photographs. Hovering over an item turns its background yellow to indicate it is editable. A simple click loads the text into an edit box, right there on the page.

8. Seamless inline text editing with ASP.NET AJAX

This is a technique that I really like. It’s excellently suited to intranet sites and administrative interfaces, where your users are typically familiar enough with the application to know which text they can click to edit. It’s actually very easy to implement, with a small amount of JavaScript.

Thanks for visiting the new editinplace.org. Along with the new site there is a new version of the Edit In Place code, 0.5.0. There changes from previous versions so be sure to check out the documentation. I’m also trying out Vanilla for forums, so give that a whirl if you have questions and let me know what you think.
10. Edit in Place with JavaScript and CSS

Edit in place (also called in-place editing) follows the axiom Alan Cooper calls “allow input wherever you have output”. The combobox – a form element unfortunately absent from HTML – demonstrates this. In the same place where the current selection is displayed, the user can enter a value directly.

A small piece of javascript reads al SPAN tags, checks if it has class=”editText” and a id=. If that is true, it adds a onclick function. That onclick function will create a textfield or input (depending on the size of the editable text). Someone has the ability to edit the field. When the text field is blurred, it will read the contents, and starts a XMLHttpRequest and ‘sends’ the content + fieldname + any set vars to an update file. That file will update your database, and reply with the newly set text and the textfield will dissapear again.
This is a very simple script which only works with span tags. Text from the span html tag is sent to update.php which process the request.
Plain html is returned from the server and this result populates the span.
12. Easy AJAX inline text edit

As everybody knows, refreshing pages is so 1999. AJAX, DOM, whatever you call it makes it possible to let people edit a piece of text inline without having to use a submit button.
You say: but that ain’t new at all! I say: But all of this has been made easy to use and implement: 2.0!
13. Light Speed Inline Editing Using ASP.NET AJAX and Web Services

If you ask people what the most important thing that they want for web based application UIs, most of them will answer “I want to edit data really fast, like in Excel!” That is a tough request. It means that the person wants to click on a row, edit some data, then click on another row, and have all the data saved into a database…
14. Inline editing with DB write : ‘REAL’ AJAX with Asp.Net Series

This is a continuation of my ‘REAL’ AJAX with Asp.Net (not Asp.Net AJAX) series posts for those of us trying to stop relying on Asp.Net ‘AJAX’.
15. Inline editing with AJAX – how do I create multiple editable areas on the same page?

I found a tutorial on how to create editable regions on a page using AJAX.
This is great, except it was written for a single element with a unique ID. I’d like to be able to click on multiple elements on the same page and have them also be editable (e.g., I’d like to alter the script below so it works not with a single element, but with multiple elements of a particular class).

RSS Feeds
Feed Comment 




0 users responded to this post
1 Pingback & Trackback On This Post
Leave Your Comments Below