• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Misusing InPlaceEditor

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Sheriff
Posts: 67756
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can I use onComplete callback option ?
 
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic