like i have this php/javascript script but the one of the javascripts bit isnt worrking here is the code:
PHP Code:
window.addEvent('domready',function() {
$$('a.delete').each(function(el) {
el.addEvent('click',function(e) {
e.stop();
var parent = el.getParent('div');
var request = new Request({
url: 'lol.php',
link: 'chain',
method: 'get',
data: {
'delete': parent.get('id').replace('record-',''),
ajax: 1
},
onRequest: function() {
new Fx.Tween(parent,{
duration:300
}).start('background-color', '#fb6c6c');
},
onSuccess: function() {
new Fx.Slide(parent,{
duration:300,
onComplete: function() {
parent.dispose();
}
}).slideOut();
}
}).send();
});
});
});
now the problem is its all ok until the parent.dispose(); and the slideout() because the , the thing changes color which is meant to happen but then after that the box doesnt "dispose" and "slideOut"
BTW this is MooTools
Bookmarks