mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
intentando resolver conflictos
This commit is contained in:
17
ci4/app/Views/themes/vuexy/form/test_js/test_js.js
Executable file
17
ci4/app/Views/themes/vuexy/form/test_js/test_js.js
Executable file
@ -0,0 +1,17 @@
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
fetch("/presupuestos/cosidotapablanda/datatable", {
|
||||
|
||||
method: 'POST',
|
||||
body: JSON.stringify(data),
|
||||
headers: { 'X-Requested-With': 'XMLHttpRequest' },
|
||||
|
||||
})
|
||||
.then(response => console.log(response))
|
||||
//.then(json => console.log(json))
|
||||
.catch(err => console.log(err));
|
||||
|
||||
*/
|
||||
36
ci4/app/Views/themes/vuexy/form/test_js/viewTest.php
Executable file
36
ci4/app/Views/themes/vuexy/form/test_js/viewTest.php
Executable file
@ -0,0 +1,36 @@
|
||||
<?= $this->extend('themes/backend/vuexy/main/defaultlayout') ?>
|
||||
|
||||
|
||||
<?= $this->section("additionalInlineJs") ?>
|
||||
|
||||
console.log("Hola")
|
||||
|
||||
let datos = {
|
||||
table_type: 'comp_int_bn',
|
||||
paginas: 200,
|
||||
tirada: 100,
|
||||
merma: 10,
|
||||
ancho: 98 ,
|
||||
alto: 148,
|
||||
papel_generico_id: 4,
|
||||
papel_generico: 'AHUESADO OFFSET',
|
||||
gramaje: 80,
|
||||
<?= csrf_token() ?? "token" ?> : <?= csrf_token() ?>v
|
||||
}
|
||||
|
||||
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url:"cosidotapablanda/datatable",
|
||||
data:datos, // data recive un objeto con la informacion que se enviara al servidor
|
||||
success:function(data){ //success es una funcion que se utiliza si el servidor retorna informacion
|
||||
console.log(data)
|
||||
yeniden(data.<?= csrf_token() ?>);
|
||||
},
|
||||
//dataType: dataType // El tipo de datos esperados del servidor. Valor predeterminado: Intelligent Guess (xml, json, script, text, html).
|
||||
})
|
||||
|
||||
|
||||
<?=$this->endSection() ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user