function initAppPlugSVPtagArticle( e ) { Event.stop(e); Event.observe( 'btAddTag','click', function(evt) { Event.stop(evt); var idPost = $('singleRepaire').getAttribute('attr'); var opt = { method: 'post', postBody: 'action=addTagArticle&idPost='+escape(idPost)+'&'+$('tagArticle').serialize() , onSuccess: function( t ) { alert( t.responseText ); } }; new Ajax.Request( "http://affaires.svp.com/wp-content/plugins/SVPtagArticle/php/dispatcher.php" , opt ); } ); } Event.observe( window ,'load', initAppPlugSVPtagArticle );