[ 
https://issues.apache.org/jira/browse/COUCHDB-1059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020695#comment-13020695
 ] 

Ronen commented on COUCHDB-1059:
--------------------------------

Sorry I didn't see your response up till now, I guess that your covered

Thanks for the fix
Ronen




> jquery couch list function and html response
> --------------------------------------------
>
>                 Key: COUCHDB-1059
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1059
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>    Affects Versions: 1.0.1
>            Reporter: Ronen
>
> Calling a list function from jquery couch that returns a non json response 
> (html in my case) fails since the return type is hardcoded as json: 
>       complete: function(req) {
>         try {
>           var resp = $.httpData(req,"json");
>         } catch(e) {
>    
>       //....
> This causes httpData to try and parse the returned data as json, by making 
> this optional (adding returnType option to options):
>           var resp = $.httpData(req, options.returnType? 
> options.returnType:"json");
> It is solved, 
> I can create a patch if required.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to