0
How can I show a message box using the bootbox.js
after writing to the database redirecting the user?
I did a test with the following script, but did not succeed.
if($execCurso){ ?>
<script>
$(document).on("load", ".alert", function(e) {
bootbox.alert("Obrigado por se candidatar-se a essa vaga. Atualize seu currículo se achar necessário.", function() {
var novaURL = "http://meuendereco/curriculo/Form.php";
$(window.document.location).attr('href',novaURL);
});
});
</script>
<?php
}else{
echo "Erro cadastrando";
header("Location:home.php?m=0");
}
I made some queries by Google but I could not find the solution to the problem I have.
Hello user3511079 the problem is that I am not able to show the message.
– adventistapr
@adventistapr In place of
$(document).on("load", ".alert", function(e) {
trial$(document).load(function(){
– Natanael Lopes
Thanks @Natanael Lopes, big help.
– adventistapr