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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -