Tuesday, 11 October 2011

JQuery.

Since i'll be using JQuery to present my Panoramas on the web, I figured it would be very useful to know about it.


  • jQuery is a cross-browser JavaScript library designed to simplify the client-side scripting of HTML. It was released in January 2006 at BarCamp NYC by John Resig. Used by over 31% of the 10,000 most visited websites, jQuery is the most popular JavaScript library in use today.


JQuery is a Javascript libary that works over all browsers. Its features include:

  • DOM Element selections using the cross browser open source selector engine, Sizzle.
  • DOM trabersal and modification
  • Events
  • CSS Manipulation
  • Effects and animation
  • Ajax
  • Extensibility
  • Utilities - Such as browser version, and the EACH fuction
  • And Cross-browser support.
The library is just a single JavaScript file, that contains all of its common DOM, Events, effects, and Ajax. You can include it in any web page by linking it localy with the file in your network, or to a public one, such as Google, or Microsoft CDN. The code would look like this:

<script type="text/javascript" src="jquery.js"></script>
 
Another, more popular way to link the JQuery Library to your webpage, is by using what is known as the .ready code. 
 
$(document).ready(function() {
// jquery goes here
});
  
 Or the shortcut
 
$(function() {
// jquery goes here
}); 

No comments:

Post a Comment