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

154
Vistas
React, JsonP, ajax and jQuery

I'm SO confused and any help would be appreciated. I need to pull information from a jsonp api.

<script>
    $(document).ready(function() {
        $.ajax({
          url: 'url?callback=parametername',
          data: {
            check: 'code'
          },
          jsonp:"parametername",
          dataType: 'jsonp',
          success: function(result) {
            console.log(result);
            
          }
        });
      });

      
    </script>

With this code above I am able to pull all information from the api and display it in the console of the browser. However I do not want to display it in the console - instead I want to display it on the web app that I'm building. Further, I want to display only small sections of the information rather than all of the information. What code do I need to add to do this? Or do I need to change anything? And the reason I put React in the title is because I need to post it to codesandbox, and unfortunately it looks like codesandbox only uses react rather than jquery, so even if the jquery issue is resolved, I'm not sure how to get this live on codesandbox, so if it's possible to explain the react version of this to me as well, that would be SO appreciated! Thank you!

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