Answer the question
In order to leave comments, you need to log in
Periodically knocks out an error message with a status of 500, is this related to the csrf token?
When going to the employees page, so far only in Chrome (I have not met it in Opera so far), it periodically knocks out such a window:
with the following accompaniment:
routes :
Route::any('employees/sort', '[email protected]')->middleware('auth');
Auth::routes();
Route::get('logout', '\App\Http\Controllers\Auth\[email protected]');
Route::group(['middleware' => 'auth'], function() {
Route::resource('employees','EmployeesController');
});
function ajaxLoad(filename, content) {
content = typeof content !== 'undefined' ? content : 'content';
$('.loading').show();
$.ajax({
type: "GET",
url: filename,
contentType: false,
success:function(data){
console.log(data);
$('#'+ content).html($(data));
$('.loading').hide();
},
error: function (xhr, status, error) {
alert(xhr.responseText);
}
});
}
$(document).ready(function () {
ajaxLoad('employees/sort');
});
Answer the question
In order to leave comments, you need to log in
Where do you include jQuery? in head?
https://tecadmin.net/referenceerror-is-not-defined...
and why are you using jQuery in the project and not Vue.js?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question