Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

118
Vistas
why the Ip is showing in sweetalert2

when i run this it only shows me the loader and does not get the ip. i did different modification but nothing seems working... and also i am very new to javascript.

const getIp = document.getElementById('ipTrigger');
getIp.addEventListener('click', function(){
swal.fire({
title: 'Your public IP',
confirmButtonText: 'Show my public IP',
showCloseButton: true,
text:
  'Your public IP will be received ' +
  'via AJAX request',
    showLoaderOnConfirm: true,
    preConfirm: function () {
      return new Promise(function (resolve) {
        $.get('https://api.ipify.org?format=json')
          .done(function (data) {
            swal.insertQueueStep(data.ip)
            resolve()
          })
      })
    }
    });
});
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda