This forum is now read-only. Please use our new forums! Go to forums
6/14 - doesn't work when I copy to desktop
I reproduced the code to my desktop (copy and paste), but I can’t get it to work.
It also raises my eyebrow to see it using a google version of jQuery, the first I’ve seen of it done so far.
Previously I have used: script src=”https://code.jquery.com/jquery-1.11.2.min.js“ (in script tags)
in each file I had when copying code to my desktop.
Answer 55b06f5293767616fd000842
Hi veggiedude,
Without seeing your code and the error you get it’s slightly difficult to be able to offer any input here, so forgive me if i come at this from the wrong angle.
Just to cover as much as possible please make sure you are using/referencing the actual JQuery ‘base’ library too, this is not shown in the code on codecademy lesson but is required.
There are TWO versions of JQuery in use on this exercise, one is for the ‘base’ JQuery similar to the sample you mentioned above, the other is for JQuery UI; some basic info on this can be read here - http://learn.jquery.com/jquery-ui/getting-started/#basic-overview-using-jquery-ui-on-a-web-page. All that is happening is that codecademy are using Google’s CDN to obtain this JQuery UI, rather than hosting themselves or loading it as an actual file, you are probably familiar with this but in the event of a little knowledge for someone else who may read this post: a little info can be found here - http://www.w3schools.com/jquery/jquery_get_started.asp
If you include the ‘base’ JQuery, along with the JQuery UI requirements, don’t forget the css, then you should be good to go, if it worked in codecademy, it might need a tweak or two, it should also work in any browser that doesn’t have any features disabled/turned off EG: don’t allow java-script to run etc.
If you need a little more help please feel free to post your code and any errors you may be getting and someone will try to help you as soon as they can.
Cheers =)
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
2 comments
Thanks. I had the same question and now my code works on my computer.
That’s awesome, I’m glad to hear that Michael, and you have a kick as name to boot ;) Happy coding & don’t be shy to share your achievements with the community!