[Proto-Scripty] Delete php

2009-07-22 Thread Yan Kovyakh
Just like MaGic! No, no magic, it's all you! Thanks everybody who contributed in helping me, that means a lot, you're awesome! Thanks! In your layout, you are not using the A tag, but rather the LI tag to carry the ID. Since that's the case (which is why you are using this, I

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
, 2009 7:35 PM Subject: [Proto-Scripty] Delete php 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

[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
Sent: Tuesday, July 21, 2009 10:00 AM Subject: [Proto-Scripty] Delete php I don't really want to change the whole script, and the problem is that I can't get the ID out, not the script. Is there any way to extract an ID instead of doing: var id

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
Sent: Tuesday, July 21, 2009 10:00 AM Subject: [Proto-Scripty] Delete php I don't really want to change the whole script, and the problem is that I can't get the ID out, not the script. Is there any way to extract an ID instead of doing: var id

[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
:38 PM Subject: [Proto-Scripty] Delete php I'm getting true in a test but NULL as an post ID. Every element has an Id: li id=Item_55span class=remove(x)/span/li I'm getting frustrated as much as you do Alex, the last pledge for help would be to send in the whole script

[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
: Tuesday, July 21, 2009 4:26 PM Subject: [Proto-Scripty] Delete php Maybe there's something completely other that causes this problem, if someone look at it http://pastie.org/553229 Already been tried !!! - Original Message - From: Walter Lee Davis wa...@wdstudio.com

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
: Tuesday, July 21, 2009 5:04 PM Subject: [Proto-Scripty] Delete php Both of the solutions causes script not to work at all, just to make sure I'm connecting all right. http://jsbin.com/igixe/edit Okay. Your script is listening to the ul list with ID of clones so you will never get an element id

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
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 with evt.stop(); Alex Mcauley http://www.thevacancymarket.com - Original Message - From: Yan Kovyakh

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
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 with evt.stop(); Alex Mcauley http://www.thevacancymarket.com - Original Message - From: Yan Kovyakh

[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
In the post of remove_clone.php I see clone theIDnumber in response tab see nothing... 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

[Proto-Scripty] Delete php

2009-07-21 Thread Yan Kovyakh
I do see the real ID of an item, no errors, nothing changed since adding the code you've gave. And again in the firebug XHR tab for the POST remove_clone.php in the tab Post I see clone theRealID without of course. Nothing in HTML or Response tabs. Do you actually see the real ID number, or do

[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
, July 20, 2009 7:35 PM Subject: [Proto-Scripty] Delete php 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

[Proto-Scripty] Delete php

2009-07-20 Thread Yan Kovyakh
To: prototype-scriptaculous@googlegroups.com Sent: Monday, July 20, 2009 7:35 PM Subject: [Proto-Scripty] Delete php They actualy have Item_numericalID Is this the problem? --~--~-~--~~~---~--~~ You received this message because you

[Proto-Scripty] Delete php

2009-07-20 Thread Yan Kovyakh
, July 20, 2009 7:35 PM Subject: [Proto-Scripty] Delete php 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