Is using php+js categorized as Ajax?

Jangga

Junior Member
Joined
Aug 8, 2016
Messages
196
Reaction score
11
please, i want to build a dynamic website. i intend to use php and js ....but, people online always refering to ajax. Cant i build with only php+js+css ? I believe js is enough for client side stuff
 
AJAX means asynchronous javascript and XML. That means you are using javascript to update your page without reloading it.
Yes, you can use javascript and CSS for front-end stuff and PHP for backend. That's how it has been done for a very long time.
 
AJAX means asynchronous javascript and XML. That means you are using javascript to update your page without reloading it.
Yes, you can use javascript and CSS for front-end stuff and PHP for backend. That's how it has been done for a very long time.
Are u saying I should simply use php+js without Ajax? Can I update page without reloading using javascript & css?
 
Are u saying I should simply use php+js without Ajax? Can I update page without reloading using javascript & css?
When you updating a page without reloading it is usually called "ajax".
It is just functionality that JS provides to send request to your php scripts. It is easy to implement, you should definitely look into this.
 
A simple youtube search will provide you enough information to understand and start using AJAX (Search for "what is AJAX"). Using plain JS to perform requests is rather complicated for beginners, that's why I recommend you to use jQuery since you're probably familiar with it. jQuery has great documentation and easy to understand examples (api.jquery.com/jquery.ajax/). Another great library is Axios (github.com/mzabriskie/axios) very well documented and easy to use.
 
Are u saying I should simply use php+js without Ajax? Can I update page without reloading using javascript & css?

I would say use jQuery, it's a javascript library that makes your life easier with ajax queries (sending/receiving info to the server);
There are plenty of tutorials about jQuery out there
 
AJAX is the JavaScript client for making HTTP requests. Nothing more and nothing less.

If you want to have a better understanding I recommend you read about the HTTP protocol and the request-response paradigm.
 
I would say use jQuery, it's a javascript library that makes your life easier with ajax queries (sending/receiving info to the server);
There are plenty of tutorials about jQuery out there
Using jQuery standalone for requests is a waste of resources and a decrease of performance.
I suggest you using axios to perform AJAX requests. If you're using NPM just type npm install axios and import to your project. You can find various tutorials on youtube on how to use it.
 
Back
Top