James - I think I'm trying to do the opposite, my ajax call returns
XML, and I want to treat it like plain HTML - but I'll look at your
link and see if it helps, thanks!
Klaus - the API exists already and is used by other client technology,
I don't have free reign to change it... and I shouldn't have to,
everything works fine when i send XML without the mime type!
I just need to ignore the XML mime type, and everything would be
sorted!!!
On Mar 31, 6:30 am, Klaus Hartl <klaus.ha...@googlemail.com> wrote:
> 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!
No comments:
Post a Comment