Questions tagged as 'sweetalert'

1
answer

Open page by clicking Ok - SweetAlert

I am testing with the SweetAlert plugin, and would like to open a page by clicking ok , but I could not do it. I did a test using setTimeout , but there was a lot of gambiarra ... <html> <head> <...
asked by 20.04.2016 / 22:14
2
answers

Focus on the last character Jquery

I need that when the field receives the focus, the cursor stays on the last character. The way the cursor is is at the beginning of the field even though the field is not empty. function gravaObs(unidadeObs) { var gasObs = $('#obsGas_'+uni...
asked by 19.08.2017 / 23:14
2
answers

Opening another page with Angular and Sweet Alert

I'm trying to open a page in javascript with angularjs. I need when I click on the bt it asks a question and depending on the result, open a link with the url true or false. I can do this, but the page only opens if I click the button again. Her...
asked by 07.11.2016 / 18:54
2
answers

Increase textarea's size

I'm trying to use Sweet Alert 2 . I would like to increase the textarea field by using the rows attribute, but it is not working. How do I increase the size of the field? $('.btn').on('click', function(){ telaModal() }); functi...
asked by 10.07.2018 / 20:29
1
answer

Alert works and sweetalert not [closed]

I'm trying to use sweetalert to give a "Submitted" alert. if($rstSql["cod_erro"] == 0) { echo '<script> swal("Good job!", "You clicked the button!", "success"); <script>'; } else { echo '<script>alert("message2"...
asked by 22.09.2015 / 19:51
1
answer

How to use ajax inside a SweetAlert?

I tried that, but I do not think it's the right way. I'm actually sure, because the code does not work. function removeCliente(id) { swal({ title: "Are you sure?", text: "You will not be able to recover this imaginary file!", ty...
asked by 09.07.2015 / 18:37
1
answer

Update sweetalert 1.x for sweetalert 2 + javascript promises

When updating the library SweetAlert it stopped working, debugging the error saw that it had many modifications that made version 1.x incompatible with the new version, so I would like help transcribing my deletarRegistro() function....
asked by 13.02.2018 / 18:04
2
answers

Delete record with Laravel via AJAX

I am developing an application in PHP with Laravel and I have in my AlunosController and following method destroy: public function destroy($id) { $aluno = new Aluno(); $result = $aluno->find($id)->delete(); if($result)...
asked by 11.05.2017 / 15:06
0
answers

SweetAlert continue to run

I have confirm down using SweetAlert . If the user clicks cancel it for execution and returns to the previous page correctly. But if you click Continue, it does nothing. How can I make it follow the script execution by clicking Cont...
asked by 02.02.2017 / 12:36
1
answer

php variable within line javascript (Sweet Alert) PHP

I'm creating a message using the Sweet Alert feature, and where I need to display the person name inside an Alert from a PHP variable >. So, I would like to know how I can do it correctly. Obs :. The connection to the database is working...
asked by 27.12.2017 / 17:36