[eluser]An Phu[/eluser]
when searching i found example on "http://davidwalsh.name/dw-content/mootools-record-delete.php"
so i can't understand : these code below
"01.window.addEvent('domready',function() {
02. $$('a.delete').each(function(el) {
03. el.addEvent('click',function(e) {
04. e.stop();
05. var parent = el.getParent('div');
06. var request = new Request({
07. url: 'mootools-record-delete.php',
08. link: 'chain',
09. method: 'get',
10. data: {
11. 'delete': parent.get('id').replace('record-',''),
12. ajax: 1
13. },
14. onRequest: function() {
15. new Fx.Tween(parent,{
16. duration:300
17. }).start('background-color', '#fb6c6c');
18. },
19. onSuccess: function() {
20. new Fx.Slide(parent,{
21. duration:300,
22. onComplete: function() {
23. parent.dispose();
24. }
25. }).slideOut();
26. }
27. }).send();
28. });
29. });
30.});
"
So Someone can explain to me how it work and send to me some document about using ajax-mootools in CI ,Basic Event and thank you so much