Can I write ajax and javascript together?

Asked

Viewed 249 times

0

  • 4

    What do you mean "write javascript and ajax together"? Ajax is Javascript...

  • 3

    AJAX is a technology that uses JS, it is not another language: https://pt.wikipedia.org/wiki/AJAX_(program%C3%A7%C3%A3o) So the question makes no sense.

  • Friend, the definition of AJAX is Asynchronous Javascript and XML, IE, Ajax is Javascript, rephrase your question so that it is easier to understand what you want to do.

  • Answered my question then javascript = ajax with other functions

  • 1

    Heed javascript is not = ajax, XMLHttpRequest (ajax) is a API javascript, so by "writing ajax", you are already doing javascript, as well as the FileReader is another API javascript.

  • A little about ... http://www.linhadecodigo.com.br/artigo/3585/ajax-basico-introducao.aspx

  • 2

    And if it’s not clear yet, you never "write ajax", always write javascript. Javascript may involve ajax (think ajax as an operation), or not.

  • All you had to do was research "Ajax or Javascript" google, and you’d have the answer.

Show 3 more comments

1 answer

7


AJAX is Javascript, is an acronym that means Asynchronous Javascript and XML, Javascript and asynchronous XML.

Whether it’s native AJAX (with native Javascript tools) or the abstract layer of a library like jQuery, Mootools, Angular or else, it’s Javascript anyway. A library can give more methods and tools but it’s all written in Javascript.

So write Javascript within tags <script></script> is correct and consequently AJAX also.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.