change

elm.up('li').remove();

to
$(this).remove();

and it will remove the element that was clicked

Alex Mcauley
http://www.thevacancymarket.com
----- Original Message ----- 
From: "Walter Lee Davis" <wa...@wdstudio.com>
To: <prototype-scriptaculous@googlegroups.com>
Sent: Tuesday, July 21, 2009 7:53 PM
Subject: [Proto-Scripty] Re: Delete php


>
> What does Firebug say your return from Ajax.Request looks like? You
> should be able to see it in the Console tab, you'll see a POST and
> then the response from that.
>
> Walter
>
> On Jul 21, 2009, at 2:31 PM, Yan Kovyakh wrote:
>
>> Alert works up to the last 2 lines, up to the elm.up('li').remove();
>
> Try console.log(elm.up('li')) and see what you get in Firebug, that
> should return the HTML for your list item if there is an enclosing LI
> element around elm. If elm is the link (not the li) then you should be
> golden.
>
>
>
> >
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to