a real solution from jsbinca
hi jsbinca,
what should i say? you are a genius.
your script echo “<script>window.parent.tb_remove();</script>”; is working for auto close the form if it is placed in the bottom of the code in a blank application (at the end of the script).
so i modify (combine with the previous solution from the SC technical support) like this:
?>
<script>
function CloseModal()
{
window.parent.tb_remove();
}
</script>
<center><input type = “button” name = “btn_return” value = “Close” onClick = ‘Javascript:CloseModal();’></center>
<?php
i paste this code, let’s say in the middle or top of the script, then it’s completely working. now i have a button to close a blank application when it’s shown as a modal.
*ladies & gentlemen, now we have a good solution thanks to jsbinca
many thanks, jsbinca