SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

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
 

Mais procurados (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
 

Destaque

Destaque (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
 
我可能不會愛你
我可能不會愛你我可能不會愛你
我可能不會愛你
 

Semelhante a 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
 

Semelhante a 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
 

Último

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Último (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

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.