Microsoft Official Course: Using Javascript and Jquery For Responsive MVC 4 Web Applications
Microsoft Official Course: Using Javascript and Jquery For Responsive MVC 4 Web Applications
Course
Module10
JavaScript libraries:
• Help reduce the amount of code you need to
write
• Help reduce the time taken to debug an
application
• Help make web applications more interactive
Introduction to jQuery
Linking to jQuery Libraries
Accessing HTML Elements by Using jQuery
Modifying HTML Elements by Using jQuery
Calling a Web Service by Using jQuery
Introduction to jQueryUI
• Demonstration: How to Add a jQueryUI
Widget
Introduction to jQuery
• Characteristics of jQuery:
• It is a cross-browser JavaScript library
• It includes two companion modules—jQuery UI
and jQuery Mobile
• Bundling:
• Combines multiple JavaScript libraries into a single
HTTP request
•Minification:
• Compresses code in JavaScript files
Accessing HTML Elements by Using jQuery
$.ajax({
type: "POST",
dataType: "json",
url: "Customer.asmx/GetCustomerInfo",
data: "{'ID': '123'}",
contentType: "application/json;" +
"charset=utf-8",
success: function (msg) {
alert("Data Saved: " + msg);
},
failure: function (msg) {
alert(msg);
}
});
Introduction to jQueryUI
• jQuery Effects:
o Using jQuery functions, you can add effects such as
color animations, class animations, appear, slide down,
toggle, and hide and show
• jQuery Utilities:
o Using
the Position jQuery functions, you align your
webpage content
Demonstration: How to Add a jQueryUI
Widget
• Review Question(s)