How to resolve the Uncaught Syntaxerror: Unexpected token Ajax?

Asked

Viewed 67 times

0

hello I have the following code:

var player = videojs('MY_VIDEO_1');

player.on('ended', function() {
  $.ajax({
      url: "",
      context: document.body,
      success: function (s, x) {
        $(this).html(s);
    })
};

and this error appears on the Uncaught Syntaxerror: Unexpected token console as I resolve?

  • 1

    you know what the ajax does and what should pass on the url?

  • It is No Url Because it is the page that the user is to be reloaded , and I already solved problem was just add one more "};".

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.