Jump to content

Recommended Posts

Per http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_lib_google I tried using <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> in order to use JQuery, but it didn't work. After some research, I changed it to this: <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> and then it worked. Might want to update the tutorials. Regards lylez

Link to post
Share on other sites

odd, the try-it example worked for me, although that is a malformed URL and it should be changed to be absolute by adding http:, since this is validhttp://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js

Link to post
Share on other sites
  • 6 months later...

I use:

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

I was told only to specify the main version number (1 in this case) and it will pick the latest version 1. By convention is guaranteed to be backward compatible with any earlier version 1's only with extra features and bug fixes.

If you do go up to version 2 however then you may find some things don't work the same and in particular I think they are dropping support for Internet explorer pre version 9 to make it more efficient. Note: as far as I'm concerned they can drop support for internet explorer... full stop - but that's a different matter ;o)

 

p.s. The important reason for using the Google hosted version is that it is probably already cached and so saves time. However if you use a different URL then you do not get that benefit and so I'm advocating we identify which one is the right one to use! :crazy:

Edited by Angelica Perduta
  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...