I've have a VIEW, which can return either a JSON file or an html template.
Does anybody know how I can use javascript, so the browser can determine whether the response is either JSON or html text? I presume that there is something in javascript that can determine the content-type of the response, but I struggling to find out what it is. One final question - is there any other reason to tell the browser that the response is of "application/json" content-type - does it make the browser quicker or something? Cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---