PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
SWEETALERT2 NO WEBDEV
SWEETALERT2 NO WEBDEV
Started by Boller, Oct., 06 2020 2:04 PM - 1 reply
Connect yourself…
Boller
#1
Registered member
3,657 messages
Popularité : +175 (223 votes)
Posted on October, 06 2020 - 2:04 PM
SWEETALERT2 NO WEBDEV
Nesse post vou mostrar como podemos usar o sweetalert em nossos projetos Webdev de forma simples e eficiente. como estou sem tempo fiz um video com o Jing mesmo, pouco mais de 4 minutos porém ficou bem claro.
links utilizados:
https://sweetalert2.github.io/
https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
Vídeo
https://www.screencast.com/t/9QehiBZfE56Z
Código:
function Confirma_Operacao(msg_ln01, msg_ln02, uri, procSim)
{
swal({
title: msg_ln01,
text: msg_ln02,
type: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Sim',
cancelButtonText: 'Não',
confirmButtonClass: 'btn btn-success',
cancelButtonClass: 'btn btn-danger',
}).then((result) => {
if (result.value) {
$.ajax({
url: uri,
type: 'POST',
contentType: "application/x-www-form-urlencoded",
data: 'WD_ACTION_=AJAXEXECUTE&EXECUTEPROC=' + procSim //HOME.srvExcluir'
});
}
})
}
Bom proveito, espero que ajude.
by Leonardo Vilane
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
tiago
#2
Posted on April, 07 2023 - 7:09 PM
Você tem o vídeo desse exemplo, ou teria como explicar onde colocar essa função?]
O vídeo não funciona mais.
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text