mardi 19 février 2019

call particular block in another file

I want to keep particular block of code in another file.So i will call with this block in ajax my controller

       public function Test(Request $request) {

     $data['Test'] = Patient::Test(Auth::user()->userRef);
   return view('test',$data);
}

Index.php

         $(document).ready(function(){

                  $.ajax({
          url: '',
           context: document.body,
            success: function(){
        $('#refresh_rating').html();

       alert("done");
    }
});

});

test.php

     <div id="results">Hai</div>

But test.php not callimg in Index.php page



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire