main
ilhamwara 2025-07-03 10:41:53 +07:00
parent 6341ce0361
commit 8a7031bf4c
11 changed files with 75 additions and 0 deletions

View File

@ -193,6 +193,9 @@
request = $.ajax({
url: base_url,
xhrFields: {
withCredentials: true
},
type: "GET",
});
@ -236,6 +239,9 @@
request = $.ajax({
url: base_url,
xhrFields: {
withCredentials: true
},
type: "GET",
});
@ -304,6 +310,9 @@
$.ajax({
method: "POST",
url: base_url + "/get/" + urlTo,
xhrFields: {
withCredentials: true
},
data: {
_token: '{{csrf_token()}}',
id: id

View File

@ -139,6 +139,9 @@ var id = $(this).attr('data-id');
request = $.ajax({
url: base_url,
xhrFields: {
withCredentials: true
},
type: "GET",
});

View File

@ -74,6 +74,9 @@ var id = $(this).attr('data-id');
request = $.ajax({
url: base_url,
xhrFields: {
withCredentials: true
},
type: "GET",
});

View File

@ -230,6 +230,9 @@
request = $.ajax({
url: base_url,
xhrFields: {
withCredentials: true
},
type: "GET",
});
@ -273,6 +276,9 @@
request = $.ajax({
url: base_url,
xhrFields: {
withCredentials: true
},
type: "GET",
});
@ -381,6 +387,9 @@
$.ajax({
url: "{{route($route.'.store')}}", // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: formData,
processData: false, // Penting untuk FormData
contentType: false, // Penting untuk FormData
@ -448,6 +457,9 @@
$.ajax({
method: "POST",
url: base_url + "/get/" + urlTo,
xhrFields: {
withCredentials: true
},
data: {
_token: '{{csrf_token()}}',
id: id

View File

@ -380,6 +380,9 @@
$.ajax({
url: "{{route('modules.usulan.csak.store')}}", // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
validasi: validasi,
@ -435,6 +438,9 @@
$.ajax({
url: "{{route('modules.usulan_adiwiyata.administrasi.update')}}", // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
nama_dalam_sk: nama_dalam_sk,
@ -529,6 +535,9 @@
$.ajax({
url: "{{route('modules.usulan_adiwiyata.kriteria.store')}}", // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
data: allData,

View File

@ -389,6 +389,9 @@
$.ajax({
url: "{{route('modules.usulan.csap.store')}}", // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
validasi: validasi,
@ -444,6 +447,9 @@
$.ajax({
url: "{{route('modules.usulan_adiwiyata.administrasi.update')}}", // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
nama_dalam_sk: nama_dalam_sk,
@ -538,6 +544,9 @@
$.ajax({
url: "{{route('modules.usulan_adiwiyata.kriteria.store')}}", // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
data: allData,

View File

@ -174,6 +174,9 @@
$.ajax({
url: base_url+'/getForm', // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
page: number
@ -194,6 +197,9 @@
const myDropzone = new Dropzone(".dropzone", {
url: "{{ url('uploadTemp') }}", // URL ke controller kamu
method: "POST",
xhrFields: {
withCredentials: true
},
headers: {
'X-CSRF-TOKEN': "{{csrf_token()}}"
},
@ -338,6 +344,9 @@
$.ajax({
url: "{{route($route.'.store')}}", // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
data: allData

View File

@ -165,6 +165,9 @@
$.ajax({
url: base_url+'/getForm', // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
page: number
@ -214,6 +217,9 @@
$.ajax({
url: "{{url('usulan/adiwiyata/kriteria/kirimData/'.@$secure_id.'/'.encode_id(@$kuesioner->KuesionerId))}}", // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
}, // Kirim number sebagai parameter
@ -296,6 +302,9 @@
$.ajax({
url: "{{route($route.'.store')}}", // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
data: allData

View File

@ -91,6 +91,9 @@
$.ajax({
url: base_url+'/getForm', // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
page: number
@ -183,6 +186,9 @@
$.ajax({
url: "{{route($route.'.store')}}", // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
data: allData

View File

@ -83,6 +83,9 @@
$.ajax({
url: base_url+'/getSekolahSK', // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
data: jenis_usulan

View File

@ -62,6 +62,9 @@
$.ajax({
url: base_url+'/getSekolahUsulan', // Ganti dengan URL API-mu
type: 'POST', // Bisa juga 'POST' kalau perlu
xhrFields: {
withCredentials: true
},
data: {
_token:'{{csrf_token()}}',
data: jenis_usulan