3

Could anyone confirm the the CDN src link for jQuery?

I am using the following:

<script type="text/javascript" 
        src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
</script>
Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
Hari Gillala
  • 11,736
  • 18
  • 70
  • 117
  • Your `src` url looks fine. There are three main CDNs for jQuery, found here: http://docs.jquery.com/Downloading_jQuery#CDN_Hosted_jQuery – Jarrod Dixon Oct 25 '10 at 00:06

3 Answers3

2

Yes, the URL and your script tag are correct. By the way, jQuery 1.4.3 was recently released.

Jeff
  • 21,744
  • 6
  • 51
  • 55
1

The question is very vague but it is related to SharePoint and CDN-hosted copy of jQuery, so I'll try to guess - does a page using jQuery from Microsoft CDN work incorrectly in Internet Explorer? If yes, check this question and consider using your own copy of jQuery (I had this problem and I found no solution).

Community
  • 1
  • 1
Marek Grzenkowicz
  • 17,024
  • 9
  • 81
  • 111
-1

I have used the following code:

<script type="text/javascript" 
        src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.4.2");
google.setOnLoadCallback(function() 
{

/--my code
)};

Its working for IE and Firefox

Hari Gillala
  • 11,736
  • 18
  • 70
  • 117