jquery

17

Click here to load reader

Upload: mahesh-reddy

Post on 16-Apr-2017

33 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: jquery

Presentation

By : P . Mahesh ReddySoftware Engineer

29’th Jul 2016

Page 2: jquery

http://buildinternet.com/live/curtains/ http://www.willjessup.com/sandbox/jquery/

rotator/rotator.html http://www.spritely.net/

Let’s watch these first..!

Impressed !!! Let’s see that jQuery

Page 3: jquery

Where’d jQuery came from?

Why is it so popular?

2 Questions

Page 4: jquery

Complex

Highly technical

Highly dynamic

Exponential growth

The web as we know it

Page 5: jquery

5 Doctypes

3 css versions

Flash , Silverlight ,ActiveX , Java Applets

ASP(Classic) , ASP.net ,Java ,PHP ,Ruby ,Python

ColdFusion, Oracle , MySQL, Postgress ,CouchDB

MongoDB , Access

HTTP , FTP ,SMTP ,SSL ,gopher ://

Ajax , Comet, SOAP , and the REST

Page 6: jquery

Innovation

Open Source

High distribution

Large community

Numerous problems to solve

The Web is rich with…

Page 7: jquery

Client side wasn't exciting

“Unique “ browsers

The time came for Hero entry..!

Ok then ! Let’s Go back to 2006…

Page 8: jquery

They are craftsman

Skilled at integration

“ Not only a Developer but also jQuery ”

So what is a web developer really?

Page 9: jquery

Leveraged existing skills

Improved developer efficiency

Lowered barrier to entry

Fostered a community

Protected it’s core focus

Why jQuery Grew?

Page 10: jquery

DOM centric JavaScript library & API

Plugin Architecture

$ =jQuery

Selectors:

1.$(css selectors) ,Ex:$(‘#myTable>#mytr’) #=id,.=class

2.$(DOM Element),Ex:$(‘table’)

What exactly is jQuery ?

Page 11: jquery

HTML DOM Tree

Know more at:http://www.w3schools.com/jsref/default.asp

Page 12: jquery

1. HTML document traversal and manipulation

2. Event handling3. Effects4. Ajax

What do we do with jQuery ?

Chaining

$(selector).action1().action2().action3();

Page 13: jquery

Traversal: Manipulation: .parents(expression) .appendTo(exp).find(expression) .prepend(content).prev() .prependTo(exp).next() .after(content).siblings() .before(content)

.remove()Etc…. Etc….

1.HTML document traversal and manipulation

Page 14: jquery

.click()

.hover()

.dbclick()

.mouseenter()

.mouseleave()

Etc…

2.Event Handling

Page 15: jquery

.show()

.hide()

.fadeIn()

.fadeOut()

.animate()

Etc..

3.Effects

Page 16: jquery

$.ajax({url:aaa.html,data:values,success:function(data){

},complete:function(data){

},error:function(message){

});

4. Ajax

Page 17: jquery