Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!