PDA

View Full Version : Jquery question


jmm0321
03-02-2009, 08:09 PM
Ok, so I'm a web design student and recently started learning javascript. My knowledge is intermediate at best.

I recently went to jquery and found an accordion box that I wanted to use in my website's gallery section (www.designinginthedark.com

When I go to download the Jquery-1.3.1.js file i get the uncompressed version, and it downloads as Jquery-1.3.1.js.txt The txt (i'm assuming) is so it loads properly in notepad. However when I save the file with just the .js and attempt to upload it to my server, it wont let me because it says that it's not a valid file type. It says that a "." can only be used at the end of the file name, so it's not recognizing the file type. What should I do?

Eldarrion
03-02-2009, 08:41 PM
This is not really a question pertaining to jQuery itself, but either way... try renaming the file to jquery.js and uploading it that way. I would also suggest redirecting your question to a forum that does pertain to FTP and web servers, rather than a coding section.

MarkAt2
03-11-2009, 05:31 PM
I'd recommend linking to jQuery hosted on Google's CDN; it will be way faster for your users and no bandwidth cost to you.
Plus, much of the time, it will already be cached on the user's machine as it's shared by many sites.

For instance if you View-Source on my site how to hold a party (http://www.how-to-hold-a-party.com/) you'll see the reference to:

http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js