Inserting, editing, removing and displaying data Asynchronously

2

I have a CRUD in PHP developed with the MVC standard, all the interaction with the database is done with PDO, my challenge is, to pass all the data requests asynchronously using Ajax and Json. I have only theoretical knowledge about asynchronous requests and would like to know how best to make this change? is there any framework that can be implemented?

Thank you!

    
asked by anonymous 09.12.2017 / 17:52

1 answer

0

You can use Jquary to help with your asynchronous requests. With a simple code like this below you can make an asynchronous request.

$.ajax({
    url: "demo_test.txt",
    method: "GET",
    data: { name: "John", location: "Boston" },
    success: function(result){
        console.log(result);
    }
});
    
09.12.2017 / 18:42