Results 1 to 5 of 5

Thread: Question about Image Zoomer jquery.min.js file

  1. #1
    Join Date
    Apr 2013
    Location
    South Bend, IN USA
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Question about Image Zoomer jquery.min.js file

    1) Script Title: :: Featured Image Zoomer (now w/Multi-Zoom) v2.1

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...uredzoomer.htm

    3) Describe problem: I worry about using an external file I have no control over.

    A: What happens if
    http://ajax.googleapis.com/ajax/libs.../jquery.min.js
    is down?
    B: Why does jquery.min.js not work if you download it and I put it on my server?
    C: What assurance do I have that the file will always be available?
    Ted

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    2,027
    Thanks
    16
    Thanked 315 Times in 313 Posts
    Blog Entries
    13

    Default

    Dan covered most of the answer here: http://www.dynamicdrive.com/forums/s...620#post292620

    Basically, its a 3rd party service specifically designed to be linked to. If you wanted more assurance, you could download and host it yourself from the official jQuery website: http://jquery.com/download/ - I'm not sure why it wouldn't be working for you on your own server though so maybe you should provide a link to you page for us to see.
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Thanks for linking to that Beverley.

    C: see the link in Beverley's post. There is no guarantee, but the intention is for it to be available-- many more web designers than just you will have major issues if it is no longer available. (Every 5 years or so you might want to look into updating the websites to work smoothly with modern browsers, but that's a somewhat separate issue.)

    A: Your site won't work. But Google has very little downtime, and they will make every effort to keep high demand files like that available.

    In short: while it isn't guaranteed to always/forever be available, it's generally reliable. We use it; you can too.


    B: It will work. There's nothing wrong with that, except for potential updates (which aren't strictly necessary) and freeing up space/bandwidth on your host.
    Are you asking "why does it say/suggest it won't work?" (it will; it's just standard to use the hosted version), or "why isn't it working right now when I try it?"? If you have a problem with your page, please provide a link to it. My guess is that one of the file paths is incorrect so that it's looking for the script in the wrong place.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Apr 2013
    Location
    South Bend, IN USA
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks to both of you for your input.

    Ted

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,135
    Thanks
    44
    Thanked 3,231 Times in 3,192 Posts
    Blog Entries
    12

    Default

    I didn't want to add to the volume of responses until you had a chance to read what was already said. Here's my take -

    • Google is very reliable with 99% or better uptime.
    • If you use Google, chances are that many of your first time users will already have the Google script in cache, saving time loading your pages.
    • You can easily download a Google hosted script for your own use. Simply make a link to it on an .htm, or .html page, or any page you can view in your browser as HTML, example -

      download.htm (call it anything.htm):

      HTML Code:
      <!DOCTYPE html>
      <html>
      <head>
      <title></title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      
      </head>
      <body>
      Right click and "Save As":
      <a href="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js">jquery.min.js</a>
      </body>
      </html>
      where:

      Code:
      <a href="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js">jQuery</a>
      is the version you want. Notice that I have only 1.8 there. That will get you the lateset in the 1.8 series (1.8.2). Similarly you can use 1.6 for the latest in the 1.6 series (1.6.4), or just 1 for the latest in the 1 series (currently 1.9.1 - that may increase, the 1.9 series isn't necessarily finished yet, and 1.10 and 1.11 and 1.12, etc., even 1.9999 series are possibilities).

      Or if you want a specific version, use it's full version, like 1.6.2 for example.

      A Live example -

      For the latest in the 1.8 series (1.8.2), right click and "Save As":

      jquery.min.js

      Once you download it, or as you are downloading it, you can name or rename it to its version so as to avoid confusion in the future. The one in the above example could be named/renamed:

      jquery1.8.2.min.js



    Another advantage of using the Google hosted script is that for a live page you may skip the protocol (the http: part):

    Code:
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
    If you have some pages hosted on either an SSL (https:) or on a regular layer (http:), or both, the user's browser will fill in the correct protocol. And since Google hosts both types, it will send the required one to your users.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Featured Image Zoomer - Change Default loaded thumbnail image
    By coffee2020 in forum Dynamic Drive scripts help
    Replies: 17
    Last Post: 04-22-2013, 08:15 PM
  2. Replies: 4
    Last Post: 08-26-2012, 03:21 PM
  3. featured image zoomer question
    By courtneydesign in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 06-01-2012, 09:01 AM
  4. jQuery for Featured Image Zoomer
    By Mark_X in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 04-29-2012, 03:03 PM
  5. Resolved Simple Image Panner and Zoomer - jQuery issue (can't use $ in scripts))
    By JoeDaStudd in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 06-29-2011, 04:31 PM

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
  •