Wednesday, October 1, 2008

[jQuery] Re: jEditable Clone Referring to the Original Element, livequery ok to use?

Wow! Hey, that actually worked. I don't fully understand why, though.
I thought that clone(true) simply allowed for jQuery to grab a clone
from the new clone. Does livequery duplicate or interfere with that
procedure?

Thanks for digging into my code, Brandon. I seem to be working, now.

-Wayne

On Sep 29, 10:31 pm, "Brandon Aaron" <brandon.aa...@gmail.com> wrote:
> After glancing over the JS it looks like you are using both live query and
> clone(true). Using both is unnecessary and might be the cause of the issue.
> Just try using one of the two and see if that resolves your issue.
> --
> Brandon Aaron
>
> On Mon, Sep 29, 2008 at 2:04 PM, Wayne <wayne.el...@gmail.com> wrote:
>
> > On Sep 29, 1:25 pm, Mika Tuupola <tuup...@appelsiini.net> wrote:
> > > In layman's terms. After clicking baseline the new item is still
> > > editable, but the problem is when triggering the event it also makes
> > > not only the clicked element but also previous element editable.
>
> > > Is this your problem?
>
> > Right, because I'm cloning the ":last" li of the list, that's the
> > element that the editable latches onto. In the example linked, it's
> > the caption tag of each table within the li.
>
> > -Wayne
>
>

No comments: