Monday 14 January 2013

Jquery History


JQUERY HISTORY

Original author(s):         John Resig
Developer(s):                 jQuery Team
Initial release:               August 26, 2006
Stable release:              1.8.3 / November 13, 2012; 2 months ago[1]
Preview release:           1.9 RC1 / January 9, 2013; 5 days ago[2]
Development status: Active
Written in JavaScript
Size:                               32 KB zipped / 91.6 KB (production mode) / 252 KB (development mode)
Type:                             JavaScript library
License:                        MIT[3]
Website:                        http://jquery.com

Monday 7 January 2013

JQUERY (Part-1)

              The jQuery library makes it easy to manipulate a page of HTML after it's displayed by the browser. It also provides tools that help you listen for a user to interact with your page, tools that help you create animations in your page, and tools that let you communicate with a server without reloading the page. We'll get to those in a bit. First, let's look at some jQuery basics, and at how we can use jQuery to perform its core functionality: getting some elements and doing something with them.

$(document).ready()

                Before you can safely use jQuery to do anything to your page, you need to ensure that the page is in a state where it's ready to be manipulated. With jQuery, we accomplish this by putting our code in a function, and then passing that function to $(document).ready(). As you can see here, the function we pass can just be an anonymous function.
 
                                     $( document ).ready(function() {
                                                         console.log( 'ready!' );
                                      });
 
                 This will run the function that we pass to .ready() once the document is ready. What's going on here? We're using $(document) to create a jQuery object from our page's document, and then calling the .ready() function on that object, passing it the function we want to execute.
 

Get some elements

                  The simplest thing we can do with jQuery is get some elements and do something with them. If you understand CSS selectors, getting some elements is very straightforward: you simply pass the appropriate selector to $().
 
                                         $( '#header' ); // select the element with an ID of 'header'
                                         $( 'li' );      // select all list items on the page
                                         $( 'ul li' );   // select list items that are in unordered lists
                                         $( '.person' ); // select all elements with a class of 'person'

 

Sunday 6 January 2013

JAVA SCRIPT

                 JavaScript (sometimes abbreviated as JS) is a scripting language commonly implemented as part of a Web browser in order to create enhanced user interfaces and dynamic websites. JavaScript is a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. It uses syntax influenced by the language C. JavaScript copies many names and naming conventions from Java, but the two languages are otherwise unrelated and have very different semantics. The key design principles within JavaScript are taken from the Self and Scheme programming languages. It is a multi-paradigm language, supporting object-oriented, imperative, and functional programming styles.
 
                JavaScript's use in applications outside web pages — for example in PDF documents, site-specific browsers, and desktop widgets—is also significant. Newer and faster JavaScript VMs and frameworks built upon them (notably Node.js) have also increased the popularity of JavaScript for server-side web applications.
 
                JavaScript was formalized in the ECMAScript language standard and is primarily used in the form of client-side JavaScript (as part of a web browser). This enables programmatic access to computational objects within a host environment.