Problems from China | jQuery library link


<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

So I did some checking, and most of the pages do not work when run from China, as

<script src="//"></script>

This code does not work. It seems as if googleapis is blocked in china?

The only solution to this that I’ve found so far is to copy the the contents of jquery-ui.js (which I downloaded from the jquery website) and put THE WHOLE CODE between script tags.

Seems to work then. Is there any other solution? Can I just point the source to any place that has the jquery-ui.js as a download link?


this won’t work anywhere? You forgot the https::

<script src=""></script>

are we talking about in or outside the codecademy lessons?

It doesn’t seem to work inside of the codecademy lesson. Codecademy still recognizes that the code is written correctly, however I always get stuck at the error message:

"Oops, try again.
Please follow the instructions on the Full Preview page to test your code.

Outside of codecademy, I am able to run all of these fine just by linking the jquery-ui.js script with

<script src="jquery.js"></script>
<script src="jquery-ui.js"></script>
<script type='text/javascript' src='script.js'></script>

Like I said, the only solution that I’ve been able to find is to paste the whole UI code in between scripts tags. (This is only an issue from China as far as I know)

that error message simple indicate you need to press the full screen button under the preview window, and do whatever jquery code you wrote (a click or a hover or something else)

Yea, and because the Jquery-ui isn’t running, and clicking doesn’t do anything to the div, there is no way to complete the lesson :confused:

well, sounds like your solution to paste the the code into script tags worked, can you visit the url? The moment that works, it should work in the lesson as well (just don’t forget the https in the url)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.