SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Pallab Dutta
       Twitter:@pallabdutta2007
pallabdutta2007@rediffmail.com
Discussion on problems of Web developing

Traditional way of solving problems

JQuery advantages over JavaScript

Introduction to JQuery, Basic syntaxes

Use of JQuery to eradicate web developers problems

Future & Beyond
   Web is stateless.
   We use ViewState, Session, Cookie etc to
    make it look like stateful
   Need AJAX based technique to call server
    from browser
   Lot of javascript and server calls make it hard
    to maintain
   Performance impact of Viewstate
   Dependency of large numbers of 3rd party
    libraries
   Code is predefined
   Easy DOM manipulation
   Smaller construct. JQuery is designed to make
    small JavaScript code.
   Large support of plugins.
   Minified version already available.
   Testing is not necessary (as it is already tested)
   Cross browser support.
   Free and Open Source.
   Adoption of JQuery by Microsoft.
JQuery is the most outstanding cross-
 browser JavaScript library compiled for
the ease of client-side scripting of html.
  To make it short, it’s a “ready to use”
 JavaScript library that has many visual
   functions such as popular ease-in,
  ease-out effects. Because jQuery has
  tons of impressive effects, it is often
  used by web designers to make their
designs much lovable and more elegant.
   jQuery Selectors
   jQuery Event Functions
   jQuery Effects
   jQuery Callback Functions
   Changing HTML Content
   jQuery CSS Manipulation
   jQuery AJAX
   jQuery Syntax Examples
   jQuery Selectors
    ◦ $("*") //All elements.
    ◦ $(this)//Current HTML element
    ◦ $("p")//All <p> elements
    ◦ $("p.intro")//All <p> elements with class="intro"
    ◦ $("p#intro")//All <p> elements with id="intro"
    ◦ $("p#intro:first")//The first <p> element with id="intro"
    ◦ $(".intro")//All elements with class="intro"
    ◦ $("#intro")//The first element with id="intro"
    ◦ $("ul li:first")//The first <li> element of each <ul>
    ◦ $("[href$='.jpg']")//All elements with an href attribute that ends with ".jpg"
    ◦ $("div#intro .head")//All elements with class="head" inside a <div> element
      with id="intro"
   jQuery Event Functions
    ◦ $(document).ready(function)//Binds a function to the ready
      event of a document (when the document is finished loading)
    ◦ $(selector).click(function)//Triggers, or binds a function to the
      click event of selected elements
    ◦ $(selector).dblclick(function)//Triggers, or binds a function to
      the double click event of selected elements
    ◦ $(selector).focus(function)//Triggers, or binds a function to the
      focus event of selected elements
    ◦ $(selector).mouseover(function)//Triggers, or binds a function
      to the mouseover event of selected elements
   jQuery Effects
    ◦ $(selector).hide()//Hide selected elements
    ◦ $(selector).show()//Show selected elements
    ◦ $(selector).toggle()//Toggle (between hide and show) selected
      elements
    ◦ $(selector).slideDown()//Slide-down (show) selected elements
    ◦ $(selector).slideUp()//Slide-up (hide) selected elements
    ◦ $(selector).slideToggle()//Toggle slide-up and slide-down of selected
      elements
    ◦ $(selector).fadeIn()//Fade in selected elements
    ◦ $(selector).fadeOut()//Fade out selected elements
    ◦ $(selector).fadeTo()//Fade out selected elements to a given opacity
    ◦ $(selector).animate()//Run a custom animation on selected elements
   jQuery Callback Functions
    ◦ $(selector).hide(speed,callback)
   Changing HTML Content
    ◦ $(selector).html(content)//Changes the (inner) HTML of selected elements
    ◦ $(selector).append(content)//Appends content to the (inner) HTML of selected elements
    ◦ $(selector).prepend(content)//"prepends" content to the inside of matching HTML
      elements.
    ◦ $(selector).after(content)//Adds HTML after selected elements
    ◦ $(selector).before(content)//inserI HTML content before all matching elements.
   jQuery CSS Manipulation
    ◦   $(selector).css(name)//Get the style property value of the first matched element
    ◦   $(selector).css(name,value)//Set the value of one style property for matched elements
    ◦   $(selector).css({properties})//Set multiple style properties for matched elements
    ◦   $(selector).height(value)//Set the height of matched elements
    ◦   $(selector).width(value)//Set the width of matched elements
    ◦   $(selector). addClass()//Adds one or more classes to selected elements
    ◦   $(selector). hasClass()//Checks if any of the selected elements have a specified class
    ◦   $(selector). removeClass()//Removes one or more classes from selected elements
    ◦   $(selector). toggleClass()//Toggles between adding/removing one or more classes from selected elements
   jQuery AJAX
    ◦   $(selector).load(url,data,callback)//Load remote data into selected elements
    ◦   $.ajax(options)//Load remote data into an XMLHttpRequest object
   Web development is easy now.
   Well documented already.
   Maintainable code as syntax is known to most
    of the developers.
   Pluggable
   Web technology is moving towards HTML 5
   Rapid technology update with Rich UI.
   HTML 5 will be standardized in 2014.
   Large Number of Browsers supports it.
   JQuery already moving towards this.

   WE ALL ON THE RIGHT SHIP
We appreciate your support

Weitere ähnliche Inhalte

Was ist angesagt?

jQuery 1.7 Events
jQuery 1.7 EventsjQuery 1.7 Events
jQuery 1.7 Events
dmethvin
 
Unobtrusive javascript with jQuery
Unobtrusive javascript with jQueryUnobtrusive javascript with jQuery
Unobtrusive javascript with jQuery
Angel Ruiz
 
Kick start with j query
Kick start with j queryKick start with j query
Kick start with j query
Md. Ziaul Haq
 

Was ist angesagt? (20)

Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
 
JQuery introduction
JQuery introductionJQuery introduction
JQuery introduction
 
Prototype & jQuery
Prototype & jQueryPrototype & jQuery
Prototype & jQuery
 
J query training
J query trainingJ query training
J query training
 
jQuery 1.7 Events
jQuery 1.7 EventsjQuery 1.7 Events
jQuery 1.7 Events
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
 
Jquery
JqueryJquery
Jquery
 
jQuery
jQueryjQuery
jQuery
 
jQuery Essentials
jQuery EssentialsjQuery Essentials
jQuery Essentials
 
Unobtrusive javascript with jQuery
Unobtrusive javascript with jQueryUnobtrusive javascript with jQuery
Unobtrusive javascript with jQuery
 
JQuery
JQueryJQuery
JQuery
 
Kick start with j query
Kick start with j queryKick start with j query
Kick start with j query
 
Write Less Do More
Write Less Do MoreWrite Less Do More
Write Less Do More
 
JQuery
JQueryJQuery
JQuery
 
jQuery Features to Avoid
jQuery Features to AvoidjQuery Features to Avoid
jQuery Features to Avoid
 
Jquery-overview
Jquery-overviewJquery-overview
Jquery-overview
 
Jquery
JqueryJquery
Jquery
 
Jquery introduction
Jquery introductionJquery introduction
Jquery introduction
 
jQuery Essentials
jQuery EssentialsjQuery Essentials
jQuery Essentials
 

Andere mochten auch

Andere mochten auch (6)

Financial management
Financial managementFinancial management
Financial management
 
Ppt制作心得体会
Ppt制作心得体会Ppt制作心得体会
Ppt制作心得体会
 
程乐华1
程乐华1程乐华1
程乐华1
 
博客的使用1
博客的使用1博客的使用1
博客的使用1
 
Perkataan kvkvkv
Perkataan kvkvkvPerkataan kvkvkv
Perkataan kvkvkv
 
我可能不會愛你
我可能不會愛你我可能不會愛你
我可能不會愛你
 

Ähnlich wie How to increase Performance of Web Application using JQuery

presentation_jquery_ppt.pptx
presentation_jquery_ppt.pptxpresentation_jquery_ppt.pptx
presentation_jquery_ppt.pptx
azz71
 
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdfUnit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
RAVALCHIRAG1
 

Ähnlich wie How to increase Performance of Web Application using JQuery (20)

Jquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript BasicsJquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript Basics
 
jQuery basics for Beginners
jQuery basics for BeginnersjQuery basics for Beginners
jQuery basics for Beginners
 
J query b_dotnet_ug_meet_12_may_2012
J query b_dotnet_ug_meet_12_may_2012J query b_dotnet_ug_meet_12_may_2012
J query b_dotnet_ug_meet_12_may_2012
 
Jquery- One slide completing all JQuery
Jquery- One slide completing all JQueryJquery- One slide completing all JQuery
Jquery- One slide completing all JQuery
 
jQuery Rescue Adventure
jQuery Rescue AdventurejQuery Rescue Adventure
jQuery Rescue Adventure
 
jQuery
jQueryjQuery
jQuery
 
jQuery besic
jQuery besicjQuery besic
jQuery besic
 
A Rich Web Experience with jQuery, Ajax and .NET
A Rich Web Experience with jQuery, Ajax and .NETA Rich Web Experience with jQuery, Ajax and .NET
A Rich Web Experience with jQuery, Ajax and .NET
 
jQuery, CSS3 and ColdFusion
jQuery, CSS3 and ColdFusionjQuery, CSS3 and ColdFusion
jQuery, CSS3 and ColdFusion
 
Jquery Basics
Jquery BasicsJquery Basics
Jquery Basics
 
A to Z about JQuery - Become Newbie to Expert Java Developer
A to Z about JQuery - Become Newbie to Expert Java DeveloperA to Z about JQuery - Become Newbie to Expert Java Developer
A to Z about JQuery - Become Newbie to Expert Java Developer
 
A Rich Web experience with jQuery, Ajax and .NET
A Rich Web experience with jQuery, Ajax and .NETA Rich Web experience with jQuery, Ajax and .NET
A Rich Web experience with jQuery, Ajax and .NET
 
JQuery_and_Ajax.pptx
JQuery_and_Ajax.pptxJQuery_and_Ajax.pptx
JQuery_and_Ajax.pptx
 
presentation_jquery_ppt.pptx
presentation_jquery_ppt.pptxpresentation_jquery_ppt.pptx
presentation_jquery_ppt.pptx
 
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdfUnit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
Unit 1 - What is jQuery_Why jQuery_Syntax_Selectors.pdf
 
jQuery -Chapter 2 - Selectors and Events
jQuery -Chapter 2 - Selectors and Events jQuery -Chapter 2 - Selectors and Events
jQuery -Chapter 2 - Selectors and Events
 
J query
J queryJ query
J query
 
jQuery Basic API
jQuery Basic APIjQuery Basic API
jQuery Basic API
 
Unit3.pptx
Unit3.pptxUnit3.pptx
Unit3.pptx
 
JQuery
JQueryJQuery
JQuery
 

Kürzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

How to increase Performance of Web Application using JQuery

  • 1. Pallab Dutta Twitter:@pallabdutta2007 pallabdutta2007@rediffmail.com
  • 2. Discussion on problems of Web developing Traditional way of solving problems JQuery advantages over JavaScript Introduction to JQuery, Basic syntaxes Use of JQuery to eradicate web developers problems Future & Beyond
  • 3. Web is stateless.  We use ViewState, Session, Cookie etc to make it look like stateful  Need AJAX based technique to call server from browser  Lot of javascript and server calls make it hard to maintain  Performance impact of Viewstate  Dependency of large numbers of 3rd party libraries
  • 4. Code is predefined  Easy DOM manipulation  Smaller construct. JQuery is designed to make small JavaScript code.  Large support of plugins.  Minified version already available.  Testing is not necessary (as it is already tested)  Cross browser support.  Free and Open Source.  Adoption of JQuery by Microsoft.
  • 5. JQuery is the most outstanding cross- browser JavaScript library compiled for the ease of client-side scripting of html. To make it short, it’s a “ready to use” JavaScript library that has many visual functions such as popular ease-in, ease-out effects. Because jQuery has tons of impressive effects, it is often used by web designers to make their designs much lovable and more elegant.
  • 6. jQuery Selectors  jQuery Event Functions  jQuery Effects  jQuery Callback Functions  Changing HTML Content  jQuery CSS Manipulation  jQuery AJAX  jQuery Syntax Examples
  • 7. jQuery Selectors ◦ $("*") //All elements. ◦ $(this)//Current HTML element ◦ $("p")//All <p> elements ◦ $("p.intro")//All <p> elements with class="intro" ◦ $("p#intro")//All <p> elements with id="intro" ◦ $("p#intro:first")//The first <p> element with id="intro" ◦ $(".intro")//All elements with class="intro" ◦ $("#intro")//The first element with id="intro" ◦ $("ul li:first")//The first <li> element of each <ul> ◦ $("[href$='.jpg']")//All elements with an href attribute that ends with ".jpg" ◦ $("div#intro .head")//All elements with class="head" inside a <div> element with id="intro"
  • 8. jQuery Event Functions ◦ $(document).ready(function)//Binds a function to the ready event of a document (when the document is finished loading) ◦ $(selector).click(function)//Triggers, or binds a function to the click event of selected elements ◦ $(selector).dblclick(function)//Triggers, or binds a function to the double click event of selected elements ◦ $(selector).focus(function)//Triggers, or binds a function to the focus event of selected elements ◦ $(selector).mouseover(function)//Triggers, or binds a function to the mouseover event of selected elements
  • 9. jQuery Effects ◦ $(selector).hide()//Hide selected elements ◦ $(selector).show()//Show selected elements ◦ $(selector).toggle()//Toggle (between hide and show) selected elements ◦ $(selector).slideDown()//Slide-down (show) selected elements ◦ $(selector).slideUp()//Slide-up (hide) selected elements ◦ $(selector).slideToggle()//Toggle slide-up and slide-down of selected elements ◦ $(selector).fadeIn()//Fade in selected elements ◦ $(selector).fadeOut()//Fade out selected elements ◦ $(selector).fadeTo()//Fade out selected elements to a given opacity ◦ $(selector).animate()//Run a custom animation on selected elements
  • 10. jQuery Callback Functions ◦ $(selector).hide(speed,callback)
  • 11. Changing HTML Content ◦ $(selector).html(content)//Changes the (inner) HTML of selected elements ◦ $(selector).append(content)//Appends content to the (inner) HTML of selected elements ◦ $(selector).prepend(content)//"prepends" content to the inside of matching HTML elements. ◦ $(selector).after(content)//Adds HTML after selected elements ◦ $(selector).before(content)//inserI HTML content before all matching elements.
  • 12. jQuery CSS Manipulation ◦ $(selector).css(name)//Get the style property value of the first matched element ◦ $(selector).css(name,value)//Set the value of one style property for matched elements ◦ $(selector).css({properties})//Set multiple style properties for matched elements ◦ $(selector).height(value)//Set the height of matched elements ◦ $(selector).width(value)//Set the width of matched elements ◦ $(selector). addClass()//Adds one or more classes to selected elements ◦ $(selector). hasClass()//Checks if any of the selected elements have a specified class ◦ $(selector). removeClass()//Removes one or more classes from selected elements ◦ $(selector). toggleClass()//Toggles between adding/removing one or more classes from selected elements
  • 13. jQuery AJAX ◦ $(selector).load(url,data,callback)//Load remote data into selected elements ◦ $.ajax(options)//Load remote data into an XMLHttpRequest object
  • 14. Web development is easy now.  Well documented already.  Maintainable code as syntax is known to most of the developers.  Pluggable
  • 15. Web technology is moving towards HTML 5  Rapid technology update with Rich UI.  HTML 5 will be standardized in 2014.  Large Number of Browsers supports it.  JQuery already moving towards this.  WE ALL ON THE RIGHT SHIP
  • 16.