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

Tadjiev Codes
Tadjiev Codes
9,626 Points

AJAX Course related

Hi, I wrote the code as in the videos but it doesn't seem to work. Can't realize the issues? Workspace : https://w.trhou.se/dz7y8ohv0s

THE AJAX basics course :https://teamtreehouse.com/library/processing-json-data-2#downloads

2 Answers

Justin Horner
STAFF
Justin Horner
Treehouse Guest Teacher

Hello, Tadjiev

It looks like you're just missing the <script> tag to reference your external widget.js file.
Inside index.html, below the main.css <link>, add a <script> tag and set the src attribute to "js/widget.js".

I hope this helps.
Happy Coding πŸ™‚

Tadjiev Codes
Tadjiev Codes
9,626 Points

Yes Exactly. I didn't even think it wasn't added my bad( Thanks anywaysπŸ™‚