/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Help With JQuery…

I want to use JQuery to create an image gallery similar to this: [URL=”http://www.webdesignerwall.com/demo/jquery/img-replacement.html”]http://www.webdesignerwall.com/demo/jquery/img-replacement.html[/URL] It seems that all I need to do now is to download the jquery.js file. I went to the jquery website ([URL=”http://docs.jquery.com/Downloading_jQuery”]http://docs.jquery.com/Downloading_jQuery[/URL]) and I have some questions…

  • 1.

    I was expecting to find jquery.js but it looks like I should just download the latest file (1.2.6), right?

  • 2.

    When I reference the file in my code, should I reference it like this?

  • [CODE]<script type=”text/javascript” src=”jquery-1.2.6.js”></script>[/CODE]

    Or am I supposed to rename the file as jquery.js and THEN reference it like this?

    [CODE]<script type=”text/javascript” src=”jquery.js”></script>[/CODE]

    Or is either way okay?

  • 3.

    Also, which version should I download? Minified? Packed? Or Uncompressed? (I’ll be using the image gallery feature for my retail website – americanchic.net).

  • 4.

    Once I download the file, all I need to do is upload it to my server, right? No extra steps, right??

  • Thank you for your help in advance!

    to post a comment
    JavaScript

    2 Comments(s)

    Copy linkTweet thisAlerts:
    @skywalker2208Nov 11.2008 — I want to use JQuery to create an image gallery similar to this: http://www.webdesignerwall.com/demo/jquery/img-replacement.html It seems that all I need to do now is to download the jquery.js file. I went to the jquery website (http://docs.jquery.com/Downloading_jQuery) and I have some questions...

  • 1. I was expecting to find jquery.js but it looks like I should just download the latest file (1.2.6), right? [B]You always want to download the latest verision because it will correct bugs that have been found and possibly new features. [/B]


  • 2. When I reference the file in my code, should I reference it like this?


  • [CODE]<script type="text/javascript" src="jquery-1.2.6.js"></script>[/CODE]

    Or am I supposed to rename the file as jquery.js and THEN reference it like this?

    [CODE]<script type="text/javascript" src="jquery.js"></script>[/CODE]

    Or is either way okay? [B]since the file is called jquery-1.2.6.js then you need to point to that on the server unless you rename the file to jquery.js[/B]

  • 3. Also, which version should I download? Minified? Packed? Or Uncompressed? (I'll be using the image gallery feature for my retail website - americanchic.net). [B]The minified version, while having a larger file size than the packed version, is generally the best version to use on production deployments.<--from the site[/B]


  • 4. Once I download the file, all I need to do is upload it to my server, right? No extra steps, right?? [B]You download the file and upload it to your server and where ever in your code you want to use jquery you need to tell the file where the jquery file is. [/B]


  • Thank you for your help in advance![/QUOTE]


    Answer above in bold.
    Copy linkTweet thisAlerts:
    @jihanemoauthorNov 11.2008 — Thank you! That was great. It worked. ?
    ×

    Success!

    Help @jihanemo spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...