I using the following function to delete a row in a table
//delete individual row
jQuery('.stdtable img.delete').click(function(){
    var c = confirm('Continue delete?');
    if(c) jQuery(this).parents('tr').fadeOut(function(){ 
        jQuery(this).remove();
    });
    return false;
});
This code is in a separate js file and is common to all pages. Now I would like to add an Ajax action that deletes the row from the database. But depending on which page I'm on, it must call different controller.
Example: Product page must call delete in ProductController ProductGroup page must call delete in ProductGroupController
How to handle this?
 
     
     
    