Skip to main content

🛍️ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Félix Guérin
    Félix Guérin
    17,910 Points

    Making this request in ES6 (with Fetch API)

    Posted February 24, 2019 8:35pm by Félix Guérin
    Félix Guérin
    17,910 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    2 Answers

  • Leonardo Motta
    Leonardo Motta
    11,284 Points

    Making this request with vanilla js

    Posted September 9, 2018 3:10pm by Leonardo Motta
    Leonardo Motta
    11,284 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    1 Answer

  • tobiastrinkler
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    tobiastrinkler
    Full Stack JavaScript Techdegree Student 16,538 Points

    Ajax Request

    Posted June 24, 2018 4:00am by tobiastrinkler
    .a{fill-rule:evenodd;}techdegree
    tobiastrinkler
    Full Stack JavaScript Techdegree Student 16,538 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    1 Answer

  • John Bastian Bolhano
    John Bastian Bolhano
    4,800 Points

    How do we do this in pure JavaScript?

    Posted February 23, 2018 2:48am by John Bastian Bolhano
    John Bastian Bolhano
    4,800 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    1 Answer

  • Dávid Molnár
    Dávid Molnár
    27,081 Points

    "?jsoncallback=?" query string is a general solution?

    Posted December 10, 2017 8:13pm by Dávid Molnár
    Dávid Molnár
    27,081 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    1 Answer

  • Dongyun Cho
    Dongyun Cho
    2,256 Points

    $(this).siblings().removeClass('selected'); why this code doesn't work?

    Posted April 12, 2017 11:33am by Dongyun Cho
    Dongyun Cho
    2,256 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    2 Answers

  • Rifqi Fahmi
    Rifqi Fahmi
    23,164 Points

    Are all API generally have 'callback' parameter to request it as JSONP ??

    Posted February 26, 2017 5:03am by Rifqi Fahmi
    Rifqi Fahmi
    23,164 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    0 Answers

  • shobha gunupuru
    shobha gunupuru
    1,137 Points

    how to write the code when there is api_key given

    Posted February 14, 2017 4:36am by shobha gunupuru
    shobha gunupuru
    1,137 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    3 Answers

  • Aaron Selonke
    Aaron Selonke
    10,323 Points

    Making this same request in Vanilla JavaScript (instead of using jQuery)

    Posted November 20, 2016 4:56pm by Aaron Selonke
    Aaron Selonke
    10,323 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    3 Answers

  • Venkiteswaran Subramanian
    Venkiteswaran Subramanian
    7,643 Points

    Is it ok to keep the callback functions outside the ready function?

    Posted October 2, 2016 10:05am by Venkiteswaran Subramanian
    Venkiteswaran Subramanian
    7,643 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    1 Answer

  • Susan Rusie
    Susan Rusie
    10,671 Points

    Why is this not passing task 2 the code challenge for the Open Weather Map API?

    Posted June 10, 2016 2:50am by Susan Rusie
    Susan Rusie
    10,671 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    1 Answer

  • Sean Lamoreaux
    Sean Lamoreaux
    13,468 Points

    HTTP vs HTTPS?

    Posted March 19, 2016 11:58pm by Sean Lamoreaux
    Sean Lamoreaux
    13,468 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    3 Answers

  • Jared Bothwell
    Jared Bothwell
    7,031 Points

    Why data in function displayPhotos(data)?

    Posted March 2, 2016 3:55am by Jared Bothwell
    Jared Bothwell
    7,031 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    2 Answers

  • Thomas Euget
    Thomas Euget
    10,615 Points

    how to launch a local server to try locally the ajax code?

    Posted January 27, 2016 11:45am by Thomas Euget
    Thomas Euget
    10,615 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    2 Answers

  • Lance Chandler
    seal-mask
    PLUS
    .a{fill-rule:evenodd;}techdegree seal-36
    Lance Chandler
    Front End Web Development Techdegree Graduate 21,818 Points

    flicker.js - $(document).ready(function() { "Uncaught ReferenceError: $ is not defined" per Chrome

    Posted November 19, 2015 6:03pm by Lance Chandler
    .a{fill-rule:evenodd;}techdegree seal-36
    Lance Chandler
    Front End Web Development Techdegree Graduate 21,818 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    3 Answers

  • Luiz Vidoto
    Luiz Vidoto
    7,947 Points

    How can I make an AJAX request to a HTTPS server from a local website?

    Posted June 19, 2015 1:25am by Luiz Vidoto
    Luiz Vidoto
    7,947 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    1 Answer

  • Jonathan Sandlund
    Jonathan Sandlund
    3,972 Points

    What's the more common practice for passing data to $.getJSON: using variables or hard coding inline?

    Posted May 24, 2015 10:26pm by Jonathan Sandlund
    Jonathan Sandlund
    3,972 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    1 Answer

  • Nicholas Woods
    Nicholas Woods
    6,260 Points

    The data argument represents the JSON data returned by jQuery.

    Posted April 16, 2015 1:17am by Nicholas Woods
    Nicholas Woods
    6,260 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    1 Answer

  • Floyd Orr
    Floyd Orr
    11,723 Points

    what does getJSON() do that regular get() can't do?

    Posted March 28, 2015 9:58pm by Floyd Orr
    Floyd Orr
    11,723 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    2 Answers

  • Kelvin Zhao
    Kelvin Zhao
    10,418 Points

    When to know to use ?jsoncallback=?

    Posted December 2, 2014 9:40am by Kelvin Zhao
    Kelvin Zhao
    10,418 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    1 Answer

  • Alex Robertson-Brown
    PLUS
    Alex Robertson-Brown
    Courses Plus Student 8,956 Points

    How does an object sent as data in a get request?

    Posted October 14, 2014 7:33pm by Alex Robertson-Brown
    Alex Robertson-Brown
    Courses Plus Student 8,956 Points
    • JavaScript
    • AJAX Basics (retiring)
    • AJAX and APIs
    • Making the AJAX Request

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord