Hei!
I saw in jsfiddle that you are mounting the table with while.. I think it’s worth changing and let own, bootstra-table mount a table for you, it’s simple:
Create a PHP file that returns a json with the table data, and throw the path of that file into the data-url attribute, in the table tag, it looks like this:
> <table id="table-nome"
> data-url="caminho_data.php"
> >
> <thead>
> <tr>
> <th data-field="campo1">Campo 1</th>
> <th data-field="campo 2">Campo 2</th>
> </tr>
> </thead>
> </table>
Ai, after recording the information in your modal, on the return of the ajax, just call:
$("#table-nome").bootstrapTable('refresh');
You can see an example here:
[http://issues.wenzhixin.net.cn/bootstrap-table/#methods/refresh.html][1]
There are several other examples on this site, take a look, the bootstrap-table has a lot of cool functionality that makes life much easier after we get the hang of it ;)
the/
Another solution, GAMBIS to my view, is to play the table in another file and call this file again on the return of the modal action ajax, and replace the current table...
I do not know why they denied the answer and did not give the reason. The idea is cool, I did not know
data-url
....– Max Rogério