Wednesday, December 19, 2018

Jquery & Javascript

What is JQuery?
Well, JQuery is a framework (tools) for writing JavaScript, Written as "write less, do more", jQuery is to make easier to use JavaScript.

What is JavaScript?
JavaScript is an object-oriented computer programming (Scripting) language commonly used to create interactive effects within web browsers.

Ajax:
AJAX stands for “Asynchronous JavaScript and XML”. AJAX is about exchanging data with a server, without reloading the whole page. It is a technique for creating fast and dynamic web pages.

In .NET, we can call server side code using two ways:
        1.ASP .NET AJAX
        2. jQuery AJAX
$.ajax () Method:
JQuery’s core method for creating Ajax requests. Here are some jQuery AJAX methods:
  • $.ajax() Performs an async AJAX request.
  • $.get() Loads data from a server using an AJAX HTTP GET request.
  • $.post() Loads data from a server using an AJAX HTTP POST request
$.ajax () Method Configuration option:
Options that we use:
  • async:
  • type:
  • url:
  • data:
  • datatype:
  • success:
  • error:
async
Set to false if the request should be sent synchronously. Defaults to true. 

Note that if you set this option to false, your request will block execution of other code until the response is received.

syntax: async: false

No comments:

Post a Comment