ajax post working with ie but not with others...

ajax post working with ie but not with others...

example... i have a form with text input and file... the form has attached

  1. onsubmit=" $.ajax( { contentType:'multipart/form-data', data:new FormData(this), processData:false, type:'post', url:'myurl.cshtml' }); return false; " 

this works perfectly with ie 11, but doesn't work with chrome 32 or firefox 26, the error is something like this


  1. Uncaught TypeError: Failed to construct 'XMLHttpRequest': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
    1. (anonymous function)




any idea?! bug?! thanks