Home Top Projects Tutorials Articles Submit Project
 
  • .NET Frameworks
  • Java Frameworks
  • PHP Frameworks
  • Ruby Frameworks
  • Other Frameworks
  • Cool AJAX sites
  • Ajax Resources
  • Ajax Tools
  • JavaScript frameworks
 
     
    • jQuery: Get formatted Date from returned JSON data
    • Symfonya Ajax Example
    • Remove Nested Patterns with One Line of JavaScript
    • CSS 3 new amazing feature - border radius
    • CSSGlobe Pure CSS Data Chart
    • Tables with Style CSS
    • Simple AJAX is getting advanced
    • Back To Basics With JSF and Ajax
    • Handling array of HTML Form Elements in JavaScript and PHP
    • What Is ASP.NET Ajax
    Home » Tutorials » 3 Ways to Include jQuery

    3 Ways to Include jQuery

    jQuery is javascript framework which simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.

    You can include jQuery in different ways.

    1.Download it from jQuery site and include it into your webpage

    <script src="javascript/jquery-1.3.2.min.js" type="text/javascript"></script>

    2.Include it from Google server

    <script src="https://www.google.com/jsapi"></script>
    <script>
    google.load('jquery', '1.3.1');
    </script>

    or

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

    3.Include it from Jquery’s site

    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>


    These are the different methods to include jQuery. Each of them have there own advantages and disadvantages.

    First one has better control. Because this is your server and if u needs to modify the code, you can. Other method depends on other server, so, it may break the connection if that server is down.

    Second method is, including it from Googles server. In that first one supports https connection. Second one supports normal http connection. You can pass the jquery version depends upon your choice. If you want to update you need to include appropriate jquery versions.

    Third method is including it directly from jQuery server. And it is linking directly to latest jQuery. So you need not bother about the jQuery updation.

    Hope I have covered different methods include jQuery. What do you think? Is there any other method to include jQuery?

    source: myhtmlworld

    Copyrights Reserved AjaxProjects.com 2006-2013, Powered by Enozom - Mobile Development Company -Privacy Policy