This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by veggiedude
over 8 years

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

2 votes

Permalink

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 =)

points
Submitted by Mike_In_Training
over 8 years

2 comments

Michael Hogan over 8 years

Thanks. I had the same question and now my code works on my computer.

Mike_In_Training over 8 years

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!