✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
    • Showing results for:
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state
    • Close
  • Clint Travis
    Clint Travis
    2,264 Points

    Can't get passed this error: "Bummer: To select the <div> tag with the 'sidebar' ID, you need to pass the ID name as"

    Posted Monday at 2:49pm by Clint Travis
    Clint Travis
    2,264 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    1 Answer

  • Michael MacKenzie
    Michael MacKenzie
    8,633 Points

    Now use a DOM element's innerHTML property to set the HTML inside the sidebar div to the server's response.

    Posted on Jun 23, 2024 by Michael MacKenzie
    Michael MacKenzie
    8,633 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    1 Answer

  • Fabiola Barrientos
    Fabiola Barrientos
    9,467 Points

    I dont know what to do

    Posted on Dec 2, 2021 by Fabiola Barrientos
    Fabiola Barrientos
    9,467 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    2 Answers

  • Sardar Ahmed Khan
    Sardar Ahmed Khan
    308 Points

    code for handling response. I am getting the syntax error?

    Posted on Aug 2, 2021 by Sardar Ahmed Khan
    Sardar Ahmed Khan
    308 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    1 Answer

  • Jedidiah Jawi
    Jedidiah Jawi
    7,047 Points

    Now that the server has responded with the data, you need to add it to the page. First select the div with the ID of 'si

    Posted on Jun 7, 2021 by Jedidiah Jawi
    Jedidiah Jawi
    7,047 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    1 Answer

  • Alonzo Delk
    Alonzo Delk
    6,991 Points

    I need help adding a conditional statement

    Posted on Jun 5, 2021 by Alonzo Delk
    Alonzo Delk
    6,991 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    1 Answer

  • Marquis Briggs
    Marquis Briggs
    8,967 Points

    Add a conditional statement inside the onreadystatechange event handler that tests to make sure the server has sent back

    Posted on Jun 4, 2021 by Marquis Briggs
    Marquis Briggs
    8,967 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    2 Answers

  • Joanna Saturn
    Joanna Saturn
    6,451 Points

    I'm not sure what I'm doing wrong...receiving error around using innerHTML

    Posted on Feb 16, 2021 by Joanna Saturn
    Joanna Saturn
    6,451 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    1 Answer

  • trottly
    trottly
    5,394 Points

    Using `querySelector('#sidebar')` instead of `getElementById('sidebar')

    Posted on Feb 14, 2021 by trottly
    trottly
    5,394 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    1 Answer

  • Roberto Nieves
    Roberto Nieves
    9,902 Points

    How can I use a DOM element's innerHTML property to set the HTML inside the sidebar div to the server's response?

    Posted on Nov 27, 2020 by Roberto Nieves
    Roberto Nieves
    9,902 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    0 Answers

  • Steve Fau
    Steve Fau
    5,622 Points

    document.querySelector('#sidebar') not accepted as a valid solution.

    Posted on Oct 1, 2020 by Steve Fau
    Steve Fau
    5,622 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    1 Answer

  • Jonathan Ambriz
    PLUS
    Jonathan Ambriz
    Courses Plus Student 3,902 Points

    Add a conditional statement inside the onreadystatechange event handler that tests to make sure the server has sent back

    Posted on Sep 8, 2020 by Jonathan Ambriz
    Jonathan Ambriz
    Courses Plus Student 3,902 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    1 Answer

  • Alexandru Pescaru
    Alexandru Pescaru
    6,410 Points

    what am i doing here wrong...

    Posted on Aug 2, 2020 by Alexandru Pescaru
    Alexandru Pescaru
    6,410 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    0 Answers

  • conflictingcode
    conflictingcode
    11,223 Points

    I completed this fairly easily but why doesn't it allow the student to use an arrow function or querySelector()?

    Posted on Aug 2, 2020 by conflictingcode
    conflictingcode
    11,223 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    0 Answers

  • Christopher Evans
    Christopher Evans
    9,896 Points

    Checking for ready state - code should work

    Posted on Jan 20, 2020 by Christopher Evans
    Christopher Evans
    9,896 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    1 Answer

  • Steven mudie
    Steven mudie
    5,523 Points

    this thing is broken

    Posted on Jan 9, 2020 by Steven mudie
    Steven mudie
    5,523 Points
    • JavaScript
    • AJAX Basics
    • Programming AJAX
    • Check for the correct ready state

    1 Answer

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

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.