ajax post working with ie but not with others...
example... i have a form with text input and file... the form has attached
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
- Uncaught TypeError: Failed to construct 'XMLHttpRequest': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
-
(anonymous function)
-
any idea?! bug?! thanks