Forum Moderators: open

Message Too Old, No Replies

Ajax Live Edit

Looking for some good examples of live edit

         

boxfan

11:51 pm on Mar 10, 2006 (gmt 0)

10+ Year Member



Does anyone have any good examples of live edit using Ajax. I'm particularly looking for editing datasheet type data.

RonPK

1:53 pm on Mar 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is live edit?

boxfan

4:34 pm on Mar 11, 2006 (gmt 0)

10+ Year Member



An Ajax application that allows you to edit text in-line without having to click submit. Saves the data without refreshing the page.

RonPK

9:46 pm on Mar 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK. Sorry, I don't have any examples. But it can't be that hard to build. Basically one needs a textarea and an AJAX script that handles every onkeyup event in the textarea. Rather basic as there is no need to handle any server response.

DrDoc

11:43 pm on Mar 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So ... it's not technically an AJAX solution then ;)

I probably wouldn't submit data on ever key-up. Instead, I would keep a timer. If there has been no key strokes for X seconds, save. Each time there is a key-up event, restart timer.

jbrevell

5:01 pm on Mar 14, 2006 (gmt 0)

10+ Year Member



That's what Gmail does, autosave every n seconds.

bedlam

5:14 pm on Mar 14, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



An Ajax application that allows you to edit text in-line without having to click submit. Saves the data without refreshing the page.

Seems like these are two slightly different requirements actually--there are lots of demos out there where you do click a submit button when you're done, but where the page is not reloaded as such.

Try some of the examples in this search [google.com]. Seems like many of the demos use the Prototype library [prototype.conio.net].

-b