How do you connect jQuery to the project?



  • Sorry for a stupid question, but how do you put jQuery on the project? I work at Eclipse. Just throw up the files.

    <script type="text/javascript" src=" <с:url value='jquery-1.6.1.js'/>"></script>
    

    I told you to put it in the designs of the project, so it didn't work. ♪ ♪



  • There's another option, although the previous councils are good too!

    1. The library can be connected from the manufacturer &apos; s website http://code.jquery.com/jquery-1.7.js - full version reference (possible to download a compressed version)
    2. Connect the library with the Google Repository: http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js

    Well, I can add a little more information to the end of the day, creating absolute references to Windows is not a very grateful case, for example, the way you pointed to the library file will be differently understood in the Windows (in Windows-through reverse slash is used). Therefore, if there is no access to the interior, next to the main page of the project (the lines you connect to the library) create a scripts folder, for example (or js, everything is done differently) put the original library file in there and leave the page with scripts/jquery-1.7.js (or js/jquery-1.7.js). ...the relative paths are no problem.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2