*
The moose likes HTML, CSS and JavaScript and the fly likes Misusing InPlaceEditor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Misusing InPlaceEditor" Watch "Misusing InPlaceEditor" New topic
Author

Misusing InPlaceEditor

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hi.
I was thinking to re-implement my showCart.jsp using Scriptaculous (after implementing it successfully with prototype).
showCart.jsp displays each item in the cart using <table> markups.
--
Item name
price
a text field to allow the user to edit the quantity
an ajaxified update link
--
If the user entered 0 (zero) in the text field and clicked the link, the item should be deleted from the session and the HTML table will be update accordingly.
As I said, this is easy with prototype.
I want to employ Scriptaculous this way :
Instead of using a text field, I want to use InPlaceEditor control.
Sure it is easy to update the session state, but how to update the table ?
Yes, I know, I'm misusing InPlaceEditor control, but is it possible to do so ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

Perhaps I'm missing your point, but how you manipulate the page DOM after notification of an event (in this case the completion of the in-place editing) is independent of what triggered that event. You'd use the same DOM mainupation techniques that you would under any other circumstances. Am I missing a detail?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Can I use onComplete callback option ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Misusing InPlaceEditor
 
Similar Threads
What is Ajax.InPlaceEditor typical usage ?
Struts and Ajax
A bug in Autocompleter ?
How many text fields to I need (GWT)?
Ajax in Practice: Best practices with Prototype and Scriptaculous