The s_e_cart_discount_code JS function allows you to pass a custom success callback function, but whether or not you pass one, it still uses a default JavaScript alert to tell the user if the code is valid.
That alert should either be moved inside the default callback function or controlled via a new parameter, so that it is possible to disable it if you are informing users of success with a custom function.