Christopher Bergin Posted August 16, 2012 Share Posted August 16, 2012 In Chapter 15 , the author instructs the user to download the jquery-X.Y.Z.min.js and place it in it's own folder on the web server. If I'm using a hosting service does that mean that I'll need to test all HTML documents that include JQuery code on the web server during development and not locally in my browser? Link to comment Share on other sites More sharing options...
HartleySan Posted August 16, 2012 Share Posted August 16, 2012 No, you can test the jQuery library locally. Javascript, and by extension, jQuery are client-side languages, meaning that you can test them and use them on your computer without the use of a server. 1 Link to comment Share on other sites More sharing options...
Christopher Bergin Posted August 18, 2012 Author Share Posted August 18, 2012 that was my thinking as well. Why would I need to place the folder containing the library on a web server? Wouldn't it seem logical to add the library as an add-on feature to my web browser? Link to comment Share on other sites More sharing options...
HartleySan Posted August 19, 2012 Share Posted August 19, 2012 I don't think jQuery can be attached to a browser as an add-on, but I really don't know. Related to that though, I'm surprised that most Web browsers don't automatically include popular JS libraries in their browsers to begin with, but that's another discussion. Anyway, if you want to use jQuery on your site hosted on a Web server, then you will have to either upload a copy of the jQuery library to your Web server or link to another globally available version of the jQuery library so that people can view/interact with any content coded via jQuery. For the purposes of testing though, as mentioned before, you can simply save the jQuery file locally so that you can test things locally. Link to comment Share on other sites More sharing options...
Recommended Posts