Can I write ajax and javascript together? [closed]

0

Is there any problem of writing javascript and ajax together because both are written inside the <script></script> ? tags

You're connected to this issue

Can I for example inside the tags write a function in javascript and then a function in ajax?

comes in the continuity of this question Can I write in JavaScript within PHP?

By the way I find it useful to list my similar questions

Can I write in JavaScript within PHP?

Can I make JavaScript write PHP?

    
asked by anonymous 01.10.2015 / 18:08

1 answer

7

AJAX is JavaScript, which stands for Asynchronous JavaScript and XML , JavaScript and XML asynchronous.

Whether it's native AJAX (with native JavaScript tools) or the abstract layer of a library such as jQuery , MooTools , Angular or other, JavaScript is the same. A library can give you more methods and tools but it's all written in JavaScript.

So writing JavaScript inside tags <script></script> is correct and consequently AJAX too.

    
01.10.2015 / 18:15