Why ajax does not work?

Good evening, please tell me why AJAx does not work inside
.on('finish.countdown', function(){
everything works except the ajax
})
And he cheers the ajax is triggered via the console.
September 19th 19 at 12:22
1 answer
September 19th 19 at 12:24
The whole challenge show.
Why did that not work?
What does the PHP tag?
$('[data-countdown]').each(function() {
var $this = $(this), finalDate = $(this).data('countdown');
$this.countdown(finalDate, function(event) {
$this.html(event.strftime('%D days %H:%M:%S'));
});
$this.countdown(finalDate)

.on('finish.countdown', function() {
$('.countdown').hide();
$('.getit').show();
$.ajax({
url: 'dbtimer.php',
async: false,
dataType: 'json'});
});

});

The Ajax calls a file which is deleted from the database, if you insert a console, is removed, if you wait .on('finish.countdown' then ajax does not work - immanuel91 commented on September 19th 19 at 12:27
: Can way? base properly in meta tags listed?
Try the url relative to the root point - the '/dbtimer.php' or how you do it.
Add colback for this challenge - let's see what the server arrives. - stephen commented on September 19th 19 at 12:30
: parsererror
SyntaxError: Unexpected token ” {stack: (...), message: "Unexpected token ”"}
message: "Unexpected token ”"
stack: (...)
get stack: function () { [native code] }
set stack: function () { [native code] }
__proto__: Error - immanuel91 commented on September 19th 19 at 12:33
Comes error, success fails - immanuel91 commented on September 19th 19 at 12:36
And the path has changed - immanuel91 commented on September 19th 19 at 12:39
: And
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check xhr.spec.whatwg.org - immanuel91 commented on September 19th 19 at 12:42
: Well, he just swears on synchronous request. Should not lead to failure. Do asynchronous... Weird. - stephen commented on September 19th 19 at 12:45
The error is gone, but exactly error comes - immanuel91 commented on September 19th 19 at 12:48

Find more questions by tags PHPjQueryAJAX