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
},
onSuccess:function(transport){
elm.up('li').remove();
pollSortable.defer();
}
});
- Original Message -
From: Yan Kovyakh
To: prototype-scriptaculous@googlegroups.com
Sent: Monday, July 20
) {
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
) {
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
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
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
-
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
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
',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
',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
('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
','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
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
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
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
: 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
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
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
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
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
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
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
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
',{
parameters:{clone:id},
onSuccess:function(transport){
elm.up('li').remove();
pollSortable.defer();
}
});
- Original Message -
From: Yan Kovyakh
To: prototype-scriptaculous@googlegroups.com
Sent: Monday
);
return;
new Ajax.Request('remove_clone.php',{
parameters:{clone:id},
onSuccess:function(transport){
elm.up('li').remove();
pollSortable.defer();
}
});
- Original Message -
From: 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
26 matches
Mail list logo