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 (elm.hasClassName('remove')){

        evt.stop();

 

        var id = elm.id.split('_').last();

        new Ajax.Request('remove_clone.php',{

          parameters:{clone:id},

          onSuccess:function(transport){

            elm.up('li').remove();

            pollSortable.defer();

          }

        });

 

"


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to