Ok, thank you for your tip! I'll look at it.
I'm very new to JQuery, and lack a programming background, that's why
i appreaciate the groups so much!

On Feb 1, 10:23 am, Mika Tuupola <[EMAIL PROTECTED]> wrote:
> On Jan 31, 2008, at 3:01 PM, frizzle wrote:
>
> > I managed to achieve to change the trigger for the Jeditable items in
> > DIVs.
> > Now i've created an overview of files in a folder. It's presented in a
> > table.
> > But now the following code doesn't work anymore:
>
> > $(".edit").editable("file.php", {
> >    event     : "edit"
> > });
> > $(".edit_trigger").bind("click", function() {
> >    $(this).prev().trigger("edit");
> > });
>
> It would be good idea to familiarize yourself with jQuery and dom
> traversing.
>
> http://docs.jquery.com/Traversing
>
> > My table roughly looks like this:
>
> > <td>
> >   <a href="/testdir/test_in_testdir'" class="edit"
> > id="test_in_testdir">test_in_testdir</a>
> > </td>
> > <td >
> >  <a href="javascript:void(0);" class="edit_trigger">Edit me!!</a>
> > </td>
>
> For example:
>
>   $(".edit_trigger").bind("click", function() {
>       $
> (this).parent().parent().children().find(".edit").trigger("edit");
>   });
>
> --
> Mika Tuupolahttp://www.appelsiini.net/

Reply via email to