Skip Navigation LinksHome > Categories > Code from a Category

Introduction to JQuery



User Name: codelecturer
Name: Mike Chauhan
Contact Me: www.datawebcoder.com/ContactUs.aspx
Home Page: www.datawebcoder.com
6 years of total IT experience including programming, application development, System Maintenance . 3 years of Experienced and expertise in .Net Framework VB, Visual Basic.Net, ASP.Net 2.0, 3.5 and AD... [More]
Viewed Times: 2334
Add Date: 01/05/2012
Now everyone’s mind comes how jQuery makes our application attractive and robust, why we used jQuery, what is jQuery, etc? Below I will explain jQuery and will give you answer of your question.
If you want to make your application look more attractive and robust then jQuery is a solution. jQuery is a fabulous JavaScript library. It is fresh technology (release in January 2006) and is just the beginning.

What is jQuery?

JQuery came from JavaScript. As I above told you jQuery is a lightweight and fabulous JavaScript library. If you have good knowledge of JavaScript, you can easily understand jQuery. It is very useful when you developing Ajax based application. You can use jQuery to develop great web applications. With jQuery, programmers write code concise and not complicated. We can keep our code simple and reusable.

jQuery version On August 22nd, 2005 John Resig gave hints of jQuery and January 14th, 2006 jQuery was formally released.It was great day for all end-users. Below is the list of the most useful jQuery version:-

August 2006 first jQuery 1.0 stable release
January 2007 new jQuery 1.1 release
July 2007 jQuery 1.1.3 release with impressive speed for jQuery’s selector engine
September 2007 jQuery 1.2 release. In this version XPATH syntax for selecting elements was removed and Effect customization much more flexible.
September 2007 new UI library for jQuery.
May 2008 jQuery 1.2.6 release
January 2009 jQuery 1.3 release with Sizzle
January 2010 jQuery 1.4 release

Why we should use jQuery?

JQuery has given us too many ways to create impressive and robust applications. jQuery’s big plus point is that it is simple to understand and easy to use. With CSS knowledge, you wouldn’t face problem with using this library. You can learn jQuery in short time and do more work. JQuery provides simple way of HTML DOM traversing and manipulation, event handling, client side animations, etc.

JQuery holds a powerful and flexible mechanism for adding methods and functionalities which bundled as plug-ins.

JQuery characteristics

Cross-browser compatibility
Powerful Selectors
Light weight
Methods Chaining
Animation & Effect
jQuery Plugins

Cross-browser Compatibility

Cross-browser issues are the biggest headache of the programmers. Like if you are write a program and it is working fine in Mozilla but you would find later it isn’t working in Internet Explorer, this is the cross-browser issues, But with jQuery you can handle this problem and also handles a lot of irritating cross-browser issues. jQuery code is compatible with all the browsers.

Powerful Selectors

JQuery provides us powerful selectors to create simple and nice programs. Selector is backbone of jQuery language. Selector means you can select an element or group of elements to perform any action. If you want to use CSS and XPath together, you can use selectors because selectors are combinations of both CSS and XPath. jQuery selectors allow to do things faster and efficient.

Light weight

jQuery is a quick and quite lightweight JavaScript library. jQuery minimum size is 15KB.

Methods Chaining

The best feature of the jQuery is ‘Chaining’. It is very cool and interesting thing. You can do apply multiple methods to an element without typing the selectors again. With the methods chaining, you can reduce your code. Its mean you can do apply more commands together in one line of code.

Example:-

Animation & Effect

JQuery provides us animation feature. We can make our application more attractive with jQuery. We can use sliding, fading, etc.

jQuery Plugins

If you are developing an application and u have to use jQuery calendar control in every page. So, will you write code for calendar in every page? If you would do this, you are wrong. You are wasting your time. In this situation you can create calendar plugin; once you have created your plugin you can use its everywhere. The best feature of the jQuery plugin is that it can use in other projects also. jQuery plugins is very fast and saving time of programmers. The best part of the jQuery plugins is that you can get jQuery plugins easily on Internet.

$() function

We always start with the dollar sign and parentheses in every selector. It is an ALIAS for jQuery.

jQuery and Visual Studio

Thanks to Microsoft because now jQuery intellisense available in Visual Studio 2010. But if you are using Visual Studio 2008 you can add jQuery intellisense. Here you can find that how you can add intellisense in Visual Studio 2008.

Summary

JQuery is a modern library. It is very fast and lightweight. You can say jQuery one of the top library for Ajax based websites. JQuery is easy to learn, you can learn jQuery in 15 to 20 days. JQuery is capable to create robust applications.

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Details**:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
 
    
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.