How to refresh the table without updating the whole page?

Asked

Viewed 1,168 times

1

I am developing a system in PHP, and put some buttons to activate and delete the line but the same only returns the result if I refresh the whole page, wanted something more dynamic in the table.

  • 1

    You need to use AJAX to do this. First you will capture the event by clicking the button, make the request with ajax and after success, modify the part of the table. All this with Javascript. For ease, I recommend using jQuery. http://api.jquery.com/jquery.ajax/

  • Yes it has to do refresh, is to change html to use jquery with load ajax $.get or $.ajax and see the example Links.

  • I suggest you use a component for this. I recommend Datatable jquery. Look at the links: http://www.devmedia.com.br/jquery-datatable-configurando-e-utilizando-o-plugin-em-php/28560 https://datatables.net

  • Or if you don’t want to use Javascript you can always refresh the entire page automatically.

  • Thanks guys, I was bitolado in php and had not tried jquery, I’m reading the documentation...

No answers

Browser other questions tagged

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