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 JavaScript Basics Hello, JavaScript! Add JavaScript to HTML

John Fulstone
PLUS
John Fulstone
Courses Plus Student 762 Points

How do I get index html with my JavaScript file into Java Basics?

I cant get my html script from my workspace to my JavaScript Basics tab. https://teamtreehouse.com/workspaces/41628885# http://port-80-zoiquhtgtv.treehouse-app.com/ I'm on this course for boneheads. https://teamtreehouse.com/library/add-javascript-to-html Any ideas?

Heidi Fryzell
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Heidi Fryzell
Front End Web Development Treehouse Moderator 25,178 Points

Hi John,

The link to your workspace isn't working.

The way that I know how to link to a workspace is while you are in the workspace, click on the Camera Icon in the top right Corner of the page. Then click on take a snapshot. And it will generate a link that looks like this: https://w.trhou.se/r1arqqxj57 that you can paste into your post.

Once you fix the link I'm sure someone will be happy to take a look at you code.

Happy Coding!

1 Answer

This is how i got it to work.

So I posted an answer I think will help you. It is under the last section with the linking of JS to HTML. Basically, when i was getting this error, something was wrong with the workspace that was created for me. I had to create a new workspace that was identical to get this all to work.

here is the link to the question with my answer. Copy and paste it. Hope it can help you.

https://teamtreehouse.com/community/im-not-getting-the-same-view-after-creating-scriptjs-and-linking-it-to-indexhtm-i-see-a-index-of-page-with-2-items