Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![michael apprich](https://secure.gravatar.com/avatar/81bce079f8059b6c63b13dfa9a937438?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
michael apprich
9,989 PointsIsn't working for some reason
No error in console
<script>
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
document.getElementById('ajax').nnerHTML = xhr.responseText;
}
};
xhr.open('GET', 'sidebar.html');
xhr.send();
</script>
1 Answer
![Travis Alstrand](https://uploads.teamtreehouse.com/production/profile-photos/11658224/micro_travis.jpg)
Travis Alstrand
Data Analysis Techdegree Graduate 49,407 PointsHey michael apprich !
I do notice there is a missing 'i' in innerHTML
on what would be line 5 of what you posted. I haven't tried running your code yet, so if you continue having issues, let us know!
michael apprich
9,989 Pointsmichael apprich
9,989 PointsThanks Travis Alstrand. That's frustrating. I guess I couldn't see it because I missing my i. Buh-dum, tiss. Should that have caused an error, though?
Travis Alstrand
Data Analysis Techdegree Graduate 49,407 PointsTravis Alstrand
Data Analysis Techdegree Graduate 49,407 PointsHaha!! Nice one!![:smile: :smile:](https://image-proxy-cdn.teamtreehouse.com/7834ff468822a2940e57bd253e8d466c4aa54bf9/68747470733a2f2f7374617469632e7465616d74726565686f7573652e636f6d2f696d616765732f656d6f6a692f756e69636f64652f31663630342e706e67)
I would think it should have gotten to that part of that line of code and thrown an error stating that it doesn't recognize
nnerHTML
as a function. There has been times where sneaky things like this happen and don't produce an error in the console though.I'm not sure if you use Visual Studio Code as a text editor, but they have a great extension named Code Spell Checker that will warn you of things like this and make typos much easier to catch.![:smiley: :smiley:](https://image-proxy-cdn.teamtreehouse.com/f266e5f075421fb8b3a44f1b8d72534e51ae5854/68747470733a2f2f7374617469632e7465616d74726565686f7573652e636f6d2f696d616765732f656d6f6a692f756e69636f64652f31663630332e706e67)