[jQuery] Dynamically determine AJAX callback content type?

2009-05-16 Thread PluffMudd

Hi,

Is there a way when doing an ajax call to dynamically determine the
content type coming back (html vs xml)? Depending on certain
conditions on the server I might want to return either xml or a chunk
of html. I am curious how I would test and then process one type over
another.

Is there a way to do this?

Thanks!


[jQuery] Dynamically determine AJAX callback content type?

2009-05-16 Thread PluffMudd

Hi,

Is there a way when doing an ajax call to dynamically determine the
content type coming back (html vs xml)? Depending on certain
conditions on the server I might want to return either xml or a chunk
of html. I am curious how I would test and then process one type over
another.

Is there a way to do this?

Thanks!