Questions tagged as 'sweetalert'

2
answers

Why can not I see the sweetalert alert?

I have a form in a modal, that when clicking on submit button, after validating the fields, I send it to a php that inserts the data in a database. Next, an alert is notified on the screen. This is the form <form action="insertar.php" me...
asked by 19.03.2018 / 18:51
1
answer

SweetAlert confirm delete

I am currently working on this code from an example of a search table, deletion and editing of fields, I want to use Sweetalert to make javascript alerts more visible and although I have managed to display them in my javascript code, I can not g...
asked by 02.10.2017 / 04:13
2
answers

how to call a sweetalert from a datatable.net?

I would like to know if there is any way to call a sweetalert within a datatable, I have this code. function TablaTrabajador() { $('#myTable').DataTable({ 'ajax': { "url": "/Trabajador/VerTrabajador",...
asked by 09.08.2018 / 21:21
1
answer

Sweet alert message disappears very quickly

By clicking on the button, the SweetAlert window appears with the message, but it disappears immediately and does not allow the user to read the alert. Script: <script type="Text/javascript"> function Notificacion2() { s...
asked by 22.01.2018 / 16:39
2
answers

Problems loading sweet javascript alert libraries

I'm trying to load the libraries on a local server but for some strange reason they do not load. However, if I load it from codepen or from stackoverflow it works without problems ... I want to be loaded locally. Next the code <...
asked by 22.11.2018 / 21:03
0
answers

error in "Url" ajax "url: '/',"

When JavaScript is executed the Url is replaced by "url: '/'," so it is impossible for me to return the values from my controller to the script Does anyone know what is causing this problem? Code: <script type="text/javascript">...
asked by 05.05.2018 / 20:30
1
answer

Close Session Automatically

I need to place a timer inside this sweet alert message but where would I have to place it and how? here I have the option to continue navigating in the location.reload () function; but in the isConfirm that a timer of 30 seconds will appear whe...
asked by 13.03.2018 / 18:32
1
answer

SweetAlert: Unexpected 2nd argument

Good afternoon, I have the following code: function desactivar(idcategoria) { swal({ title: "Desactivar Categoría", text: "¿Está Seguro de desactivar la Categoría?", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55",...
asked by 05.10.2017 / 19:45
2
answers

Change of alert by sweet alert

if($resultado_pendientes>=1){ echo "alert(\"Usted posee 1 solicitud cerrada parcialmente por el departamento de sistemas, valide y cierrela antes de crear otra nueva.\"); document.location=(\"./listTicketUnrevi...
asked by 09.03.2018 / 13:25
1
answer

Confirm shipment Sweet Alert Laravel

I am trying to delete a record with double confirmation of sweet alert from a datatables, but when selecting one, it always sends me the id 1, no matter what the record is with the id 10, 20 or 30. What should be done? or what am I doing wrong ?...
asked by 23.06.2018 / 12:07