title: Different action depending on returned content type in jquery ajax
body: <p>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?</p>
  
  <p>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.</p>
  
  <p>Not sure if that is possible.</p>