skip to Main Content

Jquery – laravel datatable takes long time to load with only two records

i have the following code with only 2 records of data my controller : if (request()->ajax()){ $spareparts = Sparepart::select(DB::raw('DATE_FORMAT(spareparts.created_at,"%d-%m-%Y") as order_date'), DB::raw("CONCAT(users.address, ', ', regencies.name, ', ', districts.name, ', ', provinces.name) as address"), DB::raw("CONCAT(shipping_addresses.full_address, ', ', r.name, ', ', d.name,…

VIEW QUESTION

Html – How do I submit a form with ajax

Trying to submit a form using ajax, but it's just not working $('#Submit').on('click',function(){ $.ajax({ type: 'get', url: 'ItemProcessor.php', data: $('#input_form').serialize(), success: function(response){ alert(response) }, error: function(){ alert('error') } }) event.preventDefault() }) <form id="input_form"> <input type="image" src="AddToCart.png" id="Submit"/> <input type="number" id…

VIEW QUESTION

Jquery – .NET Core Ajax Call to Controller

This is my Index.cshtml @{ ViewData["Title"] = "Home Page"; } <div class="text-center"> <h1 class="display-4">Welcome to SyncFusion</h1> <input type="text" name="username" id="username" value=''> <button type="button" id="btnMe">Click me!</button> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> $(document).ready(function () { $("#btnMe").click(function () { $.ajax({ type: "POST", url: "HOME/Users",…

VIEW QUESTION
Back To Top
Search