JQuery

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 between JavaScript and HTML. It was released January 2006 at BarCamp NYC by John Resig.

Dual licensed under the MIT License and the GNU General Public License, jQuery is free 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's ASP.NET AJAX framework and ASP.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 basic XPath)
* Events
* CSS manipulation
* Effects and animations
* Ajax
* Extensibility
* Utilities - such as browser version and the each function.
* JavaScript Plugins

Use

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:

$("div.test").add("p.quote").addClass("blue").slideDown("slow");

…finds the union of all div tags with class attribute test and all p tags with class attribute quote, adds the class attribute blue to each matched element, and then slides them down with an animation. The $ and add functions affect the matched set, while the addClass and slideDown 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 called each in jQuery:

$.each( [1,2,3] , function() { document.write(this + 1);});

... writes 234 to the document.

It is possible to perform Ajax routines using the $.ajax and associated methods to load and manipulate remote data.

$.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); );... 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 1590598067

External 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.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • jQuery — Тип JavaScript библиотека Разработчик Джон Резиг Написана на JavaScript Операционная система Кроссплатфо …   Википедия

  • JQuery — Тип JavaScript библиотека Разработчик Джон Ресиг Написана на JavaScript …   Википедия

  • jQuery — Entwickler John Resig Aktuelle Version 1.7 (3. November 2011) Betriebssystem …   Deutsch Wikipedia

  • JQuery — Entwickler: John Resig Aktuelle Version: 1.3.2 (2009 02 20) Betriebssystem: plattformunabhängig Programmiersprache: JavaScript …   Deutsch Wikipedia

  • JQuery — Saltar a navegación, búsqueda jQuery Desarrollador jQuery Team http://jquery.com/ Información general …   Wikipedia Español

  • jQuery UI — Desarrollador jQuery UI Team http://jqueryui.com/ Información general Última versión estable 1.8.16 …   Wikipedia Español

  • JQuery UI — Saltar a navegación, búsqueda jQuery UI Desarrollador jQuery UI Team http://jqueryui.com/ Información general …   Wikipedia Español

  • jQuery — Desarrollador Equipo de desarrollo http://jquery.com/ Información general Diseñador …   Wikipedia Español

  • JQuery — Développeur John Resig Dernière version 1.3.2 (le 20 …   Wikipédia en Français

  • Jquery — Développeur John Resig Dernière version 1.3.2 (le 20 …   Wikipédia en Français

  • jQuery — Développeur John Resig Dernière version 1.7 (3 novembre  …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”