_decodeProperties($_smarty_tpl, array ( 'version' => '4.3.0', 'unifunc' => 'content_6697bc1e915bb6_76771835', 'has_nocache_code' => false, 'file_dependency' => array ( 'b24f2fe8644283faccdaec841371428d620d1b1c' => array ( 0 => '/var/www/vhosts/jb-data.de/httpdocs/template/tpl/on_suche.tpl', 1 => 1721220124, 2 => 'file', ), ), 'includes' => array ( ), ),false)) { function content_6697bc1e915bb6_76771835 (Smarty_Internal_Template $_smarty_tpl) { ?>

Loading...

> $(document).ready(function() { load_data(); function load_data(query) { $.ajax({ url:"ajax.php?s=onfetch", method:"POST", data:{query:query}, success:function(data) { $('#result').html(data); } }); } $('#search_text').keyup(function(){ var search = $(this).val(); if(search != '') { load_data(search); } else { load_data(); } }); }); function ma_wahl(maID) { $('#spinner-div').show(); $.ajax({ type: 'POST', url: "ajax.php?s=ma_edit&tpl", dataType: 'html', data: '&maID=' + maID, success: function (data) { console.log(data) $("#maedit").html(data); $('#spinner-div').hide(); } }); $.ajax({ type: 'POST', url: "ajax.php?s=ma_edit_sb&tpl", dataType: 'html', data: '&maID=' + maID, success: function (data) { console.log(data) $("#maedit2").html(data); } }); } function ma_edit_sb(maID) { $('#spinner-div').show(); $.ajax({ type: 'POST', url: "ajax.php?s=ma_edit_sb&tpl", dataType: 'html', data: '&maID=' + maID, success: function (data) { console.log(data) $("#maedit2").html(data); $('#spinner-div').hide(); } }); } function ma_tuer(maID) { $('#spinner-div').show(); $.ajax({ type: 'POST', url: "ajax.php?s=ma_tuer&tpl", dataType: 'html', data: '&maID=' + maID, success: function (data) { console.log(data) $("#maedit2").html(data); $('#spinner-div').hide(); } }); } $(document).ready(function () { $("#do-call").click(function () {//The load button $('#spinner-div').show();//Load button clicked show spinner $.ajax({ url: "https://jb-data.de/", type: 'GET', dataType: 'json', success: function (res) { //On success do something.... }, complete: function () { $('#spinner-div').hide();//Request is complete so hide spinner } }); }); }); >