Hi,
Is there any way I can evaluate the returned content type of a jquery ajax request and do different things depending on the content type?
For example if the conten type is html I'd like to append this to a certain div on my page. If the content type is text/javascript I'd like to just evaluate the javascript. If the content type is JSON I'd like to process the returned JSON data according to my needs.
Not sure if that is possible.