If you don't specify the type, jQuery will intelligently guess between
HTML and XML.

Internet Explorer seems to have an issue with not noticing XML when
you don't send an XML response type by your server. If possible, have
your server explicitly set an XML type on the data you're receiving.
Else, try looking at this thread:
http://groups.google.com/group/jquery-en/browse_thread/thread/036d49aead899d68

On Mar 30, 3:37 am, the_woodsman <elwood.ca...@gmail.com> wrote:
> Hi,
>
> My ajax requests return xml, with the corresponding mime type.
>
> I'm using $.get, as so:
>
>         $.get(
>                                                 $(this).attr('href'),
>                                                 function(data, textStatus)
>                                                 {
>                                                         
> $('#requestArea').val(data);
>                                                 },
>                                                 'html' //type, correct?
>                                         );
>
> $('#requestArea').val(data) sets a text area to say [object
> XMLDocument]
>
> So it seems my setting the type to html does nothing!
>
> I've played around with this a bit, including using other ajax methods
> apart from .get(), with the same results.
>
> Am I missing something here?
>
> Thanks in advance!

Reply via email to