What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-17 22:55:12
remove row from table with XMLHttpRequest()
$(document).ready(function(){ // Delete $('.delete').click(function(){ var el = this; var id = this.id; var splitid = id.split("_"); // Delete id var deleteid = splitid[1]; // AJAX Request $.ajax({ url: 'remove.p... Add solution -
PHP 2022-02-19 08:20:02
jquery get data from php
You can read about ajax in javascript and make an ajax request that gets the json object from PHP then process that in your javascript: Example (with some improvement to your PHP code) PHP $chart6 = $controller->runQuery("SELECT DATE(pay_date... Add solution -
Javascript 2022-02-03 12:40:56
loading page for all ajax call in jquery 3.3.1
$.when(ajax1(), ajax2(), ajax3(), ajax4()).done(function(a1, a2, a3, a4){ // the code here will be executed when all four ajax requests resolve. // a1, a2, a3 and a4 are lists of length 3 containing the response text, // status, and jqXHR obje... Add solution -
Javascript 2021-11-17 04:13:23
post antiforgerytoken jquery
@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "__AjaxAntiForgeryForm" })) { @Html.AntiForgeryToken() } <div id="myDiv" data-url="@Url.Action("Index", "Home")"> Click me to s... Add solution -
PHP 2021-11-09 08:46:18
create custom pagination in laravel 7 for api
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Pagination\Paginator; use Illuminate\Support\Collection; use Illuminate\Pagination\LengthAwarePaginator; class PaginationController extends Controller { /** ... Add solution -
Other 2021-11-06 22:40:13
csrf in codeigniter 3
<!doctype html> <html> <head> <title>How to Send AJAX request with CSRF token in CodeIgniter</title> </head> <body> <!-- CSRF token (Here, name is 'csrf_hash_name' which is specified in $config['csrf_to... Add solution