title: Bootstrap table with AJAX "Loading, please wait..."
body: <p>I'm trying to use a bootstrap table with an ajax request like in this example:
  <a href="https://examples.bootstrap-table.com/#options/table-ajax.html" rel="nofollow noreferrer">https://examples.bootstrap-table.com/#options/table-ajax.html</a></p>
  
  <p>But, like in the example, my data don't load and I only get a message saying "Loading, please wait...".
  I tried to hide the message by using <code>bootstrapTable('hideLoading');</code> but then I only get "No matching records found".</p>
  
  <p>Do you have some ideas why either the example on the official website is not working ?</p>
  
  <p>View some code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function ajaxRequest(params) {
    $.ajax({
      type: "GET",
      url: "getAjax.php",
      dataType: "json",
      success: function(data) {
        params.success({
          "rows": data,
          "total": data.length
        })
      },
      error: function(er) {
        params.error(er);
      }
    });
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;table data-toggle="table" data-detail-view="true" data-detail-view-icon="false" data-detail-view-by-click="true" data-ajax="ajaxRequest" data-detail-formatter="detailFormatter" data-id-field="id" data-page-list="[10, 25, 50, 100, ALL]" class="table table-bordered table-sm table-hover table-responsive"
    id="rtcapi"&gt;
  
    &lt;thead class="thead-light"&gt;
      &lt;tr&gt;
        &lt;th data-field="id"&gt;#&lt;/th&gt;
        &lt;th data-field="status"&gt;Status&lt;/th&gt;
        &lt;th data-field="ln_demander"&gt;Last name&lt;/th&gt;
        &lt;th data-field="fn_demander"&gt;First name&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I tried to console.log some tests in the js function and it seems it isn't called by the html...</p>
  
  <p>Thank you for your answers !</p>