[Vtigercrm-developers] When an exception is thrown
Hamono, Chris (DPC)
Chris.Hamono at sa.gov.au
Tue Sep 8 23:51:01 GMT 2015
In vtiger 6.2
When an error is thrown before the view is assigned it is returned as a json object, unfortunately the browser does not know how to handle this and asks the user to save the response as a file.
An interim but better way to deal with this issue is to check for the http header X-Requested-With: XMLHttpRequest
If this header is seen respond with json, if not respond with a html page.
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150909/ea8a77a0/attachment.html>
More information about the vtigercrm-developers
mailing list