I am wondering why the server would not serve html in the first place.

--Klaus




On 30 Mrz., 15:37, 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