Questions tagged as 'sweetalert'

2
answers

How to pass the value of a php variable into a javascript link inside a script

I have a script with a link and a variable, how to pass the value of this variable inside the link in the script? if($mensagem_post == "1"){ echo'<script> swal({ title: "Você tem certeza?", text: "Este arquivo não poderá ser...
asked by 24.06.2017 / 23:47
0
answers

PreventDefault SweetAlert2

I have this function that overrides all my native JS alerts, however, sweetAlert does not automatically give preventDefault , which causes the next lines of code to run immediately after the alert is displayed. Is there a way to get eve...
asked by 13.11.2018 / 13:42
0
answers

How to make sweetalert for deletion confirmation of records?

Hello, I would like to make a sweetalert to delete the records from my website, but I do not know how to do it since I do not understand javascript ... Can anyone give me a light ? My class / crud.php page where the querys are (the part of d...
asked by 19.10.2018 / 15:56
2
answers

Close sweetalert2 when you find the data

I would like the sweetalert2 to find the data to be modal. But it does not return anything in .then Here's my code: swal({ title: 'Auto close alert!', html: 'I will close in <strong></strong> seconds.'...
asked by 18.07.2018 / 16:23
0
answers

Uploading Sweet Alert

I'm trying to implement the Sweet Alert in my application and I'd like that by clicking Yes the button would be type loading until processing I'm trying to follow this tutorial, but I still do not understand: So here's my code: $...
asked by 05.07.2018 / 21:45
0
answers

Authentication and Sweet Alert - Laravel

Someone could help me, I have a tremendous doubt, I have already researched so much and I have not found the solution. The scenario is as follows. I created a basic project with auth through php artisan make: auth, I installed and implemented th...
asked by 06.10.2017 / 05:05