Problems from China | jQuery library link

jquery

#1

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

<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></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?

Thanks!


#2

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

<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>

are we talking about in or outside the codecademy lessons?


#3

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)


#4

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)


#5

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:


#6

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)


#7

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