hello, I usually close all my modals with this:
echo "<script>window.parent.tb_remove();</script>";
but this time, in my modal, I have a button which is of type AJAX, so when I put this code inside that button, nothing happens.
If I were to make a php button this would work, but in this case I need the button to be AJAX as I use sc_ajax_message();
so how should I write that piece of code to work in an AJAX button? I tried almost everything I can think of and nothing works!