[Proto-Scripty] Delete php

2009-07-22 Thread Yan Kovyakh
think) maybe the thing to do is to change elm.up('li').remove(); to elm.remove() and see if that does the trick for you. Walter On Jul 21, 2009, at 6:12 PM, Yan Kovyakh wrote: WOW Great! Though it's still aren't removing the link dynamically: elm.up('li').remove(); neither

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
}, onSuccess:function(transport){ elm.up('li').remove(); pollSortable.defer(); } }); - Original Message - From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Monday, July 20

[Proto-Scripty] Delete PHP

2009-07-21 Thread Yan Kovyakh
) { alert('No ID Found'); return } parameters : { clone: id } HTH - Original Message - From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July 21, 2009 10:00 AM Subject: [Proto-Scripty] Delete php I don't really want to change

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
) { alert('No ID Found'); return } parameters : { clone: id } HTH - Original Message - From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July 21, 2009 10:00 AM Subject: [Proto-Scripty] Delete php I don't really want

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
Don't really understand what should I do with that line? var elm=evt.element().id; //is the id of the element no ? - Original Message - From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July 21, 2009 11:27 AM Subject: [Proto-Scripty

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
Don't really understand what should I do with that line? var elm=evt.element().id; //is the id of the element no ? - Original Message - From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July 21, 2009 11:27 AM Subject: [Proto-Scripty

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
- From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July 21, 2009 11:47 AM Subject: [Proto-Scripty] Delete php Don't really understand what should I do with that line? var elm=evt.element().id; //is the id of the element

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
cant do it in javascript send the whole id of the element and split it in php?php // remove_clone.php$id=end(explode(_,$_POST['clone'])); ? - Original Message - From: Yan Kovyakh maybe...@gmail.com To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July 21, 2009 12

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
',function(evt){ var elm = this; .. var e=this.id; - Original Message - From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July 21, 2009 2:32 PM Subject: [Proto-Scripty] Delete php Look like it can't find

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
',function(evt){ var elm = this; .. var e=this.id; - Original Message - From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July 21, 2009 2:32 PM Subject: [Proto-Scripty] Delete php Look like it can't find

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
('click',function(evt,element){ var elm = element; if (elm.hasClassName('remove')){ evt.stop(); - Original Message - From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July 21, 2009 3:42 PM Subject: [Proto-Scripty] Delete php

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
','click',function(event) { var elm=this; // this will now be the element (this.id will be its ID) rest of your code. }); HTH Alex Mcauleyhttp://www.thevacancymarket.com - Original Message - From: Yan Kovyakh maybe...@gmail.com To: prototype-scriptaculous@googlegroups.com Sent

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
Says nothing, it's unclick-able now. and firebug says ? you have an undefined error in there for a start with evt.stop(); Alex Mcauley http://www.thevacancymarket.com - Original Message - From: Yan Kovyakh maybe...@gmail.com To: prototype-scriptaculous@googlegroups.com Sent

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
for you. ul id=clones li id=foo_1234ID = foo_1234/li li id=foo_4567ID = foo_4567 /li /ul Alex Mcauleyhttp://www.thevacancymarket.com - Original Message - From: Yan Kovyakh maybe...@gmail.com To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
for you. ul id=clones li id=foo_1234ID = foo_1234/li li id=foo_4567ID = foo_4567 /li /ul Alex Mcauleyhttp://www.thevacancymarket.com - Original Message - From: Yan Kovyakh maybe...@gmail.com To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
: Yan Kovyakh maybe...@gmail.com To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July 21, 2009 5:17 PM Subject: [Proto-Scripty] Delete php Says nothing, it's unclick-able now. and firebug says ? you have an undefined error in there for a start

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
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

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
you see 'theIDnumber'? Can you turn on error reporting in your remove_clone.php? ini_set('display_errors',1); error_reporting(E_ALL); As close to the top of the PHP script as you can get it. Walter On Jul 21, 2009, at 2:58 PM, Yan Kovyakh wrote: In the post of remove_clone.php I see clone

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
Message - From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, July 21, 2009 10:22 PM Subject: [Proto-Scripty] Delete php I don't know whether I'll be able to find a problem as I'm not that good in Javascript, but just to be on the safe side

[Proto-Scripty] Delete php

2009-07-20 Thread Yan Kovyakh
So I have some kind of Ajax callback to a php, when you click a certain thing. I don't know how to set the delete php so It will delete the row from the table. Can somebody share it? $('clones').observe('click',function(evt){ var elm = evt.element(); if

[Proto-Scripty] Delete php

2009-07-20 Thread Yan Kovyakh
Seems like something is wrong, maybe it's not sending the id at all, when I look at it in firebug XHR at the POST remove_clone.php in the post tab I see clone, shouldn't there be a value to for the id? --~--~-~--~~~---~--~~ You received this message because you

[Proto-Scripty] Delete php

2009-07-20 Thread Yan Kovyakh
It's the new element that gets created: var clone = new Element('li', {style: 'position: relative'}); clone.id = transport.responseText; It's ripped of the script, tell me if you need more. --~--~-~--~~~---~--~~ You received this message because you are

[Proto-Scripty] Delete php

2009-07-20 Thread Yan Kovyakh
They actualy have Item_numericalID Is this the problem? --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Delete php

2009-07-20 Thread Yan Kovyakh
',{ parameters:{clone:id}, onSuccess:function(transport){ elm.up('li').remove(); pollSortable.defer(); } }); - Original Message - From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Monday

[Proto-Scripty] Delete php

2009-07-20 Thread Yan Kovyakh
); return; new Ajax.Request('remove_clone.php',{ parameters:{clone:id}, onSuccess:function(transport){ elm.up('li').remove(); pollSortable.defer(); } }); - Original Message - From: Yan Kovyakh

[Proto-Scripty] Delete php

2009-07-20 Thread Yan Kovyakh
:{clone:id}, onSuccess:function(transport){ elm.up('li').remove(); pollSortable.defer(); } }); - Original Message - From: Yan Kovyakh To: prototype-scriptaculous@googlegroups.com Sent: Monday