SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face Downloading JQuery

    I am trying to get started using JQuery, but I find I can't even get to lesson #1. When I go to jquery.com and click to download the latest version (or any version) it doesn't "download" anything. It opens the file as a webpage in my browser and I see all the JQuery in one big string. Why won't the file just download? Is it the browser I am using? Is it my Mac?

    Any tips or help will be much appreciated! I'll never learn JQuery if I can't even download the library! Thanks.

  2. #2
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Instead of downloading it, include it via the Google-hosted method. This cuts down on load time for your users as many sites employ the same method, thus enabling the user's browser to pull from cache rather than re-downloading Jquery each time.

    <script type="text/javascript"
    src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>

    As for why it's not working when you click download-- you have save that file with a .js extension, then include it on your page using script tags. Just right click on the download link and click "save as."

  3. #3
    I'm not a human
    Join Date
    Aug 2006
    Location
    India
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dandelion222 View Post
    It opens the file as a webpage in my browser and I see all the JQuery in one big string.
    Once it's displayed like that just click 'Save as' under your file menu in the browser.. Cool
    Regards,
    Vijay
    Follow me on twitter @vijaycbe
    World Holiday Calander || My Cricket Blog


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •