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

JavaScript AJAX Basics (retiring) AJAX Concepts A Simple AJAX Example

alina antemir
alina antemir
6,111 Points

Hi, I just noticed in the workspace, instead of <div id = 'ajax'> there is <ul id = 'ajax'>;

Hi, while following the video with the workspace I noticed that instead of div id="ajax", we have ul id="ajax", not sure if it matters but thought of pointing this out for the best accuracy of example.

2 Answers

Hey Alina,

It seems as though this should be a div based upon the HTML within "sidebar.html", but I know who would know the answer to this! Dave McFarland

alina antemir
alina antemir
6,111 Points

Thank you for your answer Marcus and for pointing this out to Dave!

My pleasure!

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

Thanks for pointing out this mistake alina antemir ! I've fixed the workspace to match the video.

(Thanks Marcus Parsons for bringing this to my attention)

No problem, Dave!

alina antemir
alina antemir
6,111 Points

Hi Dave, thank you for your answer and for fixing the workspace.

I just tried this and it still has the ul id="ajax"...

Dave McFarland
Dave McFarland
Treehouse Teacher

Jennifer Morkunas are you launching the workspace from this page: https://teamtreehouse.com/library/ajax-basics/ajax-concepts/a-simple-ajax-example

I just tried it and I see the <div> not the <ul> tag. Did you open this workspace previously? If you did then you might have the old version still in place.

Oh okay, that's probably it because I am reviewing the video for a second time. Thank you for your follow up!

Dave, I noticed the same thing in the Project Files (stage1 folder):

 <ul id="ajax">
 </ul>

It confused me at first and I am glad I saw alina's question. Thank you.