Tag-Handler icon indicating copy to clipboard operation
Tag-Handler copied to clipboard

deleteURL Option

Open elroyshilling opened this issue 12 years ago • 2 comments

Hi,

Is it posibble to add a deleteURL Option to the Tag-Handler. I use the Tag-Handler with server-side scripting PHP&MySQL and I'd like to use a different URL for deleting tags. If there is a work around for this issue please share..

Any suggestion welcome,

Thank you

elroyshilling avatar Oct 01 '13 08:10 elroyshilling

Look into the onDelete callback. You can use this to do anything you want when a tag gets deleted.

wshafer avatar Oct 29 '13 02:10 wshafer

Thank you for your reply, the after-callback function works great for me:

afterDelete: function(tag) { $.post( "server_path/delete_tags.php", { id: "", tag: tag } ); }, afterAdd: function(tag) { $.post( "server_path/add_tags.php", { id: "", tag: tag } ); }

elroyshilling avatar Oct 29 '13 09:10 elroyshilling