@salahaldain-abduljalil In a server fetched partial I use an object, but an iframe would also work.
<div id="myModal" class="modal">
<div class="modal-content" style="width: 70%;" id="somediv" title="this is a dialog">
<span id="modalspan" class="close" onclick="closeModal()" >×</span>
<object style="width: 98%; margin: auto;" id="thedialog" height="300"></object>
</div>
</div>
But there is a learning curve, you have to learn how to handle a table row click, etc.
I don't what what you are doing with the tables.
Just an older example, I use axios js now:
$(document).ready(function () {
$("#checktable td:nth-child(1)").click(function (event)
{
event.preventDefault();
$("#cedit").css({"position": "absolute", "display": "block", "width": "100%", "background-color": "#FFF", top: event.pageY - 16, left: 0});
var $td = $(this).closest('tr').children('td');
var tid = $td.eq(0).text();
var tdate = $td.eq(1).text();
var tdescribe = $td.eq(2).text();
var wd = $td.eq(3).text();
var dep = $td.eq(4).text();
var tisclr = $td.eq(5).find(":checkbox").is(':checked')
$('#checkid').val(tid);
$('#transdate').val(tdate);
$('#transdescribe').val(tdescribe);
$('#wd').val(wd);
$('#dep').val(dep);
if ($td.eq(5).find(":checkbox").is(':checked'))
{
$('#tisclr').prop('checked', true); // checked
} else
{
$('#tisclr').prop('checked', false); // unchecked
}
});
/// much more code and functions depending on what you are doing with the table.
But you need to go through a steep learning cure here, it takes a while to learn all the things.
Go here and lookup stuff:
https://developer.mozilla.org/en-US/
But two server fetched partials would do what you need.
With the lengthaware paginators technique it is a full page reload, but a server fetched partial
only renews the table in the partial. The rest of the page remains the same.
Edit:
Also a modal isn't required for server fetched partials, but just style as needed.