javascript - jQuery.ajax beforeSend Error in IE11 -


this code. result correct , works in chrome , firefox in internet explorer become error (':' expected) in beforesend line. error block script. tried onload function document.onload , window.onload dont fix problem.

    jquery.ajax({         url: '/test',         beforesend(xhr){          },         success: function (data, textstatus){             $('#test2').html(data);         },         async: true     }); 

 beforesend(xhr){  -> change in    beforesend: function(xhr){ 

this solved problem


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -