PDA

View Full Version : Ultimate Fade-in slideshow (v2.1)-referenced ajax code clarification



rkk
11-23-2009, 06:44 PM
1) Script Title: Ultimate Fade-in slideshow (v2.1)

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

3) Describe problem: referenced ajax code clarification

what exactly does this do, and what happens if this link gets changed by google, will our gallery stop working, if so can this script be made to be self contained on our server?

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

ddadmin
11-23-2009, 09:10 PM
It's highly unlikely the Google reference above will ever be taken offline by Google, so you should be good. If you feel better hosting that file yourself though, you can simply download jQuery (http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.min.js&downloadBtn=) yourself, then change the reference to point to that file on your server instead.

jscheuer1
11-24-2009, 02:20 AM
It's highly unlikely the Google reference above will ever be taken offline by Google, so you should be good. If you feel better hosting that file yourself though, you can simply download jQuery (http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.min.js&downloadBtn=) yourself, then change the reference to point to that file on your server instead.

All correct, obviously. I would just like to add that it isn't really AJAX. The jQuery library includes an AJAX api (routines really), thats why it is included in the Google AJAX api list of scripts that may be hot linked to. However, the Ultimate Fade-in slideshow script doesn't use any AJAX, and neither does simply linking to the jQuery library hosted on Google.

And - the beauty of linking to the script on Google is that, as many folks do so for their sites, chances are good that the script will already be cached by your first time users. This speeds page load and functionality.

rkk
11-24-2009, 04:49 AM
thanks for the explanation of what this is, makes more sense now