it is wriiten in jquery document about Ajax method and its dataType:
\' Default: Intelligent Guess \'
how does jquery guess the better datatype for this meth
Don't rely on jQuery to correctly guess your returned dataType
. I was returning text
but I was foolishly assuming that text
was the default setting without looking at the documentation and my ajax requests would seemingly randomly fail, giving some of my users a bad experience and others would be fine.
i.e. jQuery cannot reliably intelligently guess text
as a dataType
.