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 jQuery Basics (2014) Creating a Simple Drawing Application Perform: Part 2

Robert Mews
Robert Mews
11,540 Points

Issues with Workspaces

I love Treehouse, but I cannot stand the constant issues with Workspaces. Every course I have an issue where it's not working properly. My jQuery for this section has been working properly and all of sudden for this video it stops working. None of the jQuery is modify the DOM. I'm so frustrated because I cannot continue with the course.

UPDATE: Code now seems to be working. Not sure exactly what's the issue. I didn't change any code.

Can you please post a snapshot of your Workspace? If you don't know how, you can find out how to do that here: https://teamtreehouse.com/forum/workspace-snapshots

1 Answer

Robert,

It's not an issue with Workspaces. According to this snapshot, you just put ??? inside of the background-color css method within the changeColor() function. In this video, he makes this function which will allow your code to progress and looks like this:

//When color sliders change
function changeColor() {
  var r = $("#red").val();
  var g = $("#green").val();
  var b = $("#blue").val();
  $("#newColor").css("background-color", "rgb(" + r + "," + g + "," + b + ")");
}
Robert Mews
Robert Mews
11,540 Points

Hey Marcus,

Sorry, I probably should have done a better job explaining. At one point in the video - before we add the changeColor function - I tested my code. This is when the jQuery code was not functioning; not even the click method. It was like the HTML wasn't loading the .js file.

Robert Mews
Robert Mews
11,540 Points

I should update that it is now working after waiting some time (I didn't change any of my code). This has happened to me multiple times where my code checks in to be valid but output isn't updating.

I have never had any problem like that, and not only have I been a member for almost a year now but I also use Workspaces just about every day. You have to make sure you are saving your code and then previewing the changes. Sometimes, code may get cached, as well, especially if you're calling the same script from multiple pages, which means you will need to wipe your history.

The caching problem is a browser specific problem, not a Workspaces problem. I'm not defending Workspaces and saying anything against you, but there is no proof that Workspaces is the offending cause of your problems.