title: Create loading screen when search form button is clicked in codeigniter
body: <p>I need to submit a search form and while searching is done in controller the page loading screen should appear an one the operation is finished is controller the view should be loaded . How to acieve this</p>
  
  <p>Here is my home view </p>
  
  <pre><code> &lt;form action="Test/search"&gt;
         &lt;input type="text" name="value1" &gt;
         &lt;input type="text" name="value2" &gt;
         &lt;input type="text" name="value3" &gt;
     &lt;input type="submit" name="submit" value="Search" &gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>Here is my controller </p>
  
  <pre><code>function Search(){
      //posting values 
       // search operation 
      $this-&gt;load-&gt;view('Search_result_view', $searchdata);
  
      }
  </code></pre>
  
  <p>My Search_result_view displays the results, I need to load a loading screen after submit button is clicked and before the view is loaded completely </p>