- JQuery
infobox software
name = jQuery
developer =John Resig
latest release version = 1.2.6
latest release date = release date|2008|05|24
genre =Web application framework
programming language =JavaScript
license =Dual license :
GPL and MIT
website = http://jquery.com/jQuery is a lightweight
JavaScript library that emphasizes interaction betweenJavaScript andHTML . It was released January 2006 atBarCamp NYC byJohn Resig .Dual license d under theMIT License and theGNU General Public License , jQuery isfree and open source software .Both Microsoft and Nokia have announced plans to bundle jQuerycite web|url=http://jquery.com/blog/2008/09/28/jquery-microsoft-nokia/|title=jQuery, Microsoft, and Nokia|last=Resig|first=John|publisher=jQuery|accessdate=2008-09-29] on their platforms, Microsoft adopting it initially within
Visual Studio [cite web|url=http://weblogs.asp.net/scottgu/archive/2008/09/28/jquery-and-microsoft.aspx|title=jQuery and Microsoft|last=Scott|first=Guthrie|date=2008-09-29|accessdate=2008-09-29] and use within Microsoft'sASP.NET AJAX framework andASP.NET MVC Framework whilst Nokia will integrate it into their Web Run-Time platform.Features
jQuery contains the following features:
* DOM element selections
* DOM traversal and modification, (including support for CSS 1-3 and basicXPath )
* Events
* CSS manipulation
* Effects and animations
* Ajax
* Extensibility
* Utilities - such as browser version and the each function.
* JavaScript PluginsUse
jQuery exists as a single JavaScript file, containing all the common DOM, Event, Effects, and Ajax functions. It can be included within any web page by using the following markup:
jQuery has two styles of interaction:
* via the$
function, which is a factory method for the jQuery object. These functions are "chainable"; they each return the jQuery object
* via$.
-prefixed functions. These are functions which do not work in the jQuery object per se.A typical workflow for manipulation of multiple DOM nodes begins with
$
function being called with a CSS selector string, with results in the jQuery object referencing zero or more elements in the HTML page. This node set can be manipulated by applying instance methods to the jQuery object, or the nodes themselves can be manipulated. For example:…finds the union of all
div
tags with class attributetest
and allp
tags with class attributequote
, adds the class attributeblue
to each matched element, and then slides them down with an animation. The$
andadd
functions affect the matched set, while theaddClass
andslideDown
affect the referenced nodes.The methods prefixed with
$.
are convenience methods or affect global properties and behaviour. For example, the following is an example of the map function calledeach
in jQuery:... writes
234
to the document.It is possible to perform Ajax routines using the
$.ajax
and associated methods to load and manipulate remote data.... will request some.php with parameters name=John and location=Boston and when the request is finished successfully, the response will be alerted.
ee also
*
Comparison of JavaScript frameworks References
* [http://www.eweek.com/article2/0,1895,2010602,00.asp eWeek]
* [http://www.infoworld.com/article/06/08/31/HNjscriptsandcastle_1.html Infoworld] , [http://weblog.infoworld.com/techwatch/archives/007794.html (again)]
* [http://video.yahoo.com/video/play?ei=UTF-8&gid=133414&vid=410472&b=1 Advancing JavaScript with Libraries (Part 1) VIDEO]
* [http://video.yahoo.com/video/play?ei=UTF-8&gid=133414&vid=412541&b=1 Advancing JavaScript with Libraries (Part 2) VIDEO]Further reading
* Learning jQuery, ISBN 1847192505
* jQuery in Action, ISBN 1933988355
* Beginning JavaScript with DOM Scripting and Ajax, ISBN 1590596803
* Hacking del.icio.us, ISBN 0470037857
* Pro JavaScript Techniques, ISBN 1590597273
* AJAX and PHP: Building Responsive Web Applications, ISBN 1904811825
* Web Development Solutions, ISBN 1590598067External links
* [http://jquery.com/ Official website]
* [http://groups.google.com/group/jquery-en jQuery Mailing List]
* [http://www.ibm.com/developerworks/library/x-ajaxjquery.html Simplify Ajax development with jQuery]
*youtube|8mwKq7_JlS8|jQuery
Wikimedia Foundation. 2010.