Solution 1 :

i think the problem is that the is successfully sent but the respond is in json as the browser waiting

you can check data is received or not by => clicking right click on the screen =>press inspect => Network => click on the page file => then choose Response

you will find your html page with the updated data in it

  • you can render it from your js script after fetching api like so
await fetch(----your fetching code-----).then(res=>{;
    res.text().then(function(text) {

Problem :

I want to use the “Flat Json”-Bootstrap 5 Table example. [Link][1]

I am using expressjs with nodejs and ejs.
My Code so far:

```<link href="[email protected]/dist/bootstrap-table.min.css" rel="stylesheet">
 <script src="[email protected]/dist/bootstrap-table.min.js"></script>

    <h2>JOB DASHBOARD</h2>

<table id="table" data-toggle="table" data-flat="true" data-search="true" >
        <th data-field="" data-sortable="true">Order ID</th>
        <th data-field="" data-sortable="true">Liefertermin</th>
        <th data-field="" data-sortable="true">Fertigstellungstermin</th>
        <th data-field="" data-sortable="true">Keyline Nr</th>
    <% var count = 0; %>
    <% orders.forEach((order)=>{  %>
        <tr data-index="<%= count %>">
            <td><%= order.order_id %></td>
            <td><%= order.due_at %> </td>
            <td><%= order.deliver_at %> </td>
            <td><%= %> </td>
        <% count +=1; %>
    <% }) %>

I am loading the content from my mongoDB Database. The Variable “orders” is an array of order documents.
At the moment the data is loading but the searchfield doesnt appear at all and all the styling doesnt work although I have loaded the bootsrap css and js.