all the types mentioned fall in to the 'text' or 'xml' camp. Overriding mime type is especially useful for telling JS to parse out the XML in a text/html file.
I can't think of anything else that JS does with the mimetype .. I can see building JQ magic into an image/* and transforming into a data: protocol url. But does JS ever care? On 10/13/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Hi folks, > > currently $.ajax accepts a 'type' option with values for 'html', 'json', > 'xml' etc. > > Regarding the discussion about the overrideMimetype option: > How about changing the type option to mimetype, accepting values like > 'text/plain', 'text/html', 'text/javascript', 'text/json', 'text/xml'. Those > mimetypes could be used, if applicable, for the overrideMimetype option, eg. > to return xml even if the server sends plain text. Using standard values for > the mimetype option could be more intuitive, too. > > Opinions, other ideas? > > -- Jörn > -- > GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist! > NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
