Click here to Skip to main content
15,886,813 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to know as a Backend Developer, Is it necessary to learn Ajax to send requests to the server asynchronously or it may be handled by a frontend developer

What I have tried:

I am working with php and MySQL and want to make errors at runtime where users enter their inputs not waiting for response from the server or it is the responsibility of frontend developer
Posted
Updated 8-Oct-21 3:19am
v2

1 solution

That is not very clear, but it could be the W3C as it says on Wikipedia:
Quote:
On 5 April 2006, the World Wide Web Consortium (W3C) released the first draft specification for the XMLHttpRequest object in an attempt to create an official Web standard.[11] The latest draft of the XMLHttpRequest object was published on 6 October 2016,[12] and the XMLHttpRequest specification is now a living standard
Ajax (programming) - Wikipedia[^]

It seems to me that simple validation can be done by the frontend developer in Javascript, e.g. checking for empty fields.
For more complex validations e.g. against a database you could use Ajax or a REST API and you would need some backend development too.
Also see: php-frameworks-for-building-a-restful-api[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900