JavaScript AJAX Basics (retiring) Programming AJAX Processing JSON Data

Ozgur Parlakkilic
Ozgur Parlakkilic
8,399 Points

my widget doesn't show https://w.trhou.se/79km1d2qk8

https://w.trhou.se/79km1d2qk8 I dont know why my employee list doesnt show

2 Answers

Zack Lee
PRO
Zack Lee
Pro Student 17,648 Points

I looked at your workspace, if you're using the files under the 'finished' folder, in the app.js, the "xhr.open" line should come just before the "xhr.send" line.

Here are the contents of widget.html, I had to make it myself as I didn't have it either.

<div id ="employeeList"> <ul class="bulleted"> <li class="out">Aimee</li> <li class="out">Amit</li> <li class="in">Andrew</li> <li class="in">Ben</li> <li class="in">Elizabeth</li> <li class="out">Guil</li> <li class="in">Hampton</li> <li class="in">Jason</li> <li class="in">Lainie</li> <li class="out">Kenneth</li> <li class="in">Pasan</li> <li class="in">Shawna</li> <li class="out">Zac</li> </ul> </div>