1
I’m having trouble calling two files .js in my html page, because the two do not work together, only separately, I believe it is a conflict problem, what add an effect of Alert custom on my site, but when I paste the code on the site the captcha does not work, is carrying infinitely this way:
follows below the path of the . js files that are conflicting:
I want to add the code below:
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script>
<div id="dialog-confirm" title="Excluir pedido?"></div>
<button id="btn" onclick="confirmar();">Clica</button>
<script type="text/javascript">
function funcao_b() {
alert('funcao B');
}
function confirmar() {
$( "#dialog-confirm" ).dialog({
resizable: false,
height: "auto",
width: 400,
modal: true,
buttons: {
"Excluir pedido": function() {
$( this ).dialog( "close" );
funcao_b();
},
'Cancelar': function() {
$( this ).dialog( "close" );
console.log('cancelado');
}
}
});
}
</script>
</html>
In the source code of this site:
How do I eliminate this conflict?
I just tested and I show the normal captcha, if the problem was only that I suggest to investigate better what is happening.
– Neuber Oliveira
@Neuberoliveira I opened now and the captcha does not work
– Vitor Marques Lourenço
can you see again? was updating the site constantly at this time, I think I had taken the script q gave the conflict
– Vitor Marques Lourenço
uses your browser’s debug tools and see if you have any error, javascript error or network error, as captch usually comes from outside may be that there is something wrong
– Neuber Oliveira
@Neuberoliveira, you were right, it was working, I’m sorry but now I added the script and the conflict is back, you can close the page q captcha will not work
– Vitor Marques Lourenço
thanks for the patience
– Vitor Marques Lourenço
@Neuberoliveira believe that the error is conflict even, because captcha now pifou q put the message script
– Vitor Marques Lourenço
Doubt is still open...
– Vitor Marques Lourenço
this is not conflict because the files are totally different, one is jquery-1.12.4.js and the other is jquery-ui.js user interface
– Marco Souza
and this normal functioning.
– Marco Souza
Why don’t you try to download the files and play in a local folder.
– Marco Souza
@GOKUSSJ4 Strange, in my notebook the captcha part does not load, I tried on my mobile phone and the error continues, the captcha part does not load, I already downloaded the files . html on my pc and the error continues, the site works, only part of captcha q hangs...
– Vitor Marques Lourenço
@Neuberoliveira you solved my problem in 40min what I took a day trying, thank you!
– Vitor Marques Lourenço