SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Zealot w1nk5's Avatar
    Join Date
    Aug 2009
    Location
    Ontario, Canada
    Posts
    115
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    AJAX.InPlaceEditor

    This question is quite specific, so hopefully someone in here can help me out.

    I am converting a system from prototype to jQuery. Part of the system is using Scriptaculous' Ajax.InPlaceEditor(). I know there are lots of jQuery alternatives for this, however, I am having a hard time finding one that works similarly and with the same options since their system is taking advantage of a lot of Ajax.InPlaceEditor() options. For example:

    • cancelControl
    • highlightendcolor
    • loadTextURL
    • callback
    • onComplete
    • onEnterEditMode
    • onLeaveEditMode


    Any assistance with this would be greatly appreciated.

    Cheers

  2. #2
    Under Construction silver trophybronze trophy AussieJohn's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    776
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Hey there,

    I don't imagine it would be easy to find something that specific (unless someone happens to have found a similar replacement). Especially finding something that implements the same/similar callbacks and options would be hard. No matter what you end up using though, it's likely that you'll need to do some rewriting of code.

    This doesn't necessarily have to be a bad thing though, it might be a good opportunity to try to find an editor that works better. If it doesn't exactly fit in to the current system, small changes are usually not a big deal to make (but that probably depends on the site and who does the back end dev on it).

    I'm sure you've seen list posts that show some inline editors; might be a good idea to try to find an awesome one and mould it and your current system to work together nicely.

    (P.S. My condolences for having to convert a Prototype based site to jQuery - I'm pretty sure I've had nightmares about doing something like that)
    var details = {
    . . web: "afterlight.com.au",
    . . photos: "jvdl.id.au",
    . . psa: "usethelatestversion.com"
    }

  3. #3
    SitePoint Zealot w1nk5's Avatar
    Join Date
    Aug 2009
    Location
    Ontario, Canada
    Posts
    115
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AussieJohn View Post
    Hey there,

    I don't imagine it would be easy to find something that specific (unless someone happens to have found a similar replacement). Especially finding something that implements the same/similar callbacks and options would be hard. No matter what you end up using though, it's likely that you'll need to do some rewriting of code.

    This doesn't necessarily have to be a bad thing though, it might be a good opportunity to try to find an editor that works better. If it doesn't exactly fit in to the current system, small changes are usually not a big deal to make (but that probably depends on the site and who does the back end dev on it).

    I'm sure you've seen list posts that show some inline editors; might be a good idea to try to find an awesome one and mould it and your current system to work together nicely.

    (P.S. My condolences for having to convert a Prototype based site to jQuery - I'm pretty sure I've had nightmares about doing something like that)
    Yeah, it's not fun. I ended up using jeditable (http://www.appelsiini.net/projects/jeditable) and adding my own callbacks to get it to do what I needed.

    Thanks for the input.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •