Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Ajax and Jquery-Ajax [closed]

Tags:

jquery

ajax

hi i am new to ajax and jquery. i found many tutorials about ajax and jquery. but what is the difference between Ajax and JQuery ajax? which should i learn? please answer. Thank you

like image 322
shfkktm Avatar asked Nov 27 '13 09:11

shfkktm


People also ask

What is the difference between Ajax and JavaScript?

This means that the difference between AJAX and Javascript is that AJAX allows you to communicate with the server without doing a page refresh (i.e. going to a new page) whereas JavaScript (JQuery) allows you to embed logic and behaviour on your page. Of course, with this logic you create AJAX as well.

What is Ajax in jQuery?

Ajax is a way of using Javascript for communicating with serverside without loading the page over again. jQuery uses ajax for many of its functions, but it nothing else than a library that provides easier functionality.

Is it better to use jQuery or Ajax for web pages?

Although the use of jQuery and AJAX makes the browsing experience a lot better for the user, the effect to the server hosting these files are not as desirable. Every time you make another AJAX request, a new connection to the server is made.

What is the use of jQuery?

jQuery's syntax is designed to make it easier to navigate a document, select DOM elements, create animations, handle events, and develop Ajax applications. In addition to the JavaScript library, jQuery also provides capabilities for developers to create plug-ins.


Video Answer


1 Answers

AJAX

  1. AJAX = Asynchronous JavaScript and XML.

  2. AJAX is a technique for creating fast and dynamic web pages.

  3. AJAX allows web pages to be updated asynchronously by exchanging small amounts of data with the server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page.

  4. Classic web pages, (which do not use AJAX) must reload the entire page if the content should change.

JQUERY

  1. JQuery is a lightweight, "write less, do more", JavaScript library.

  2. The purpose of jQuery is to make it much easier to use JavaScript on your website.

  3. jQuery takes a lot of common tasks that require many lines of JavaScript code to accomplish, and wraps them into methods that you can call with a single line of code.

  4. jQuery also simplifies a lot of the complicated things from JavaScript, like AJAX calls and DOM manipulation.

So you can code in Jquery very easily wherever you need a AJAX technique

Content from W3SCHOOLS

like image 142
manny Avatar answered Nov 03 '22 00:11

manny