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
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.
Browser other questions tagged php table
You are not signed in. Login or sign up in order to post.
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/
– Lucas Caires
Yes it has to do refresh, is to change html to use jquery with load ajax
$.get
or$.ajax
and see the example Links.– KingRider
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
– Celso Marigo Jr
Or if you don’t want to use Javascript you can always refresh the entire page automatically.
– Jorge B.
Thanks guys, I was bitolado in php and had not tried jquery, I’m reading the documentation...
– WMomesso