Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 79316 invoked from network); 4 Feb 2011 22:32:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2011 22:32:54 -0000 Received: (qmail 83011 invoked by uid 500); 4 Feb 2011 22:32:52 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 82905 invoked by uid 500); 4 Feb 2011 22:32:51 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 82897 invoked by uid 99); 4 Feb 2011 22:32:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Feb 2011 22:32:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Feb 2011 22:32:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 04B3619078C for ; Fri, 4 Feb 2011 22:32:31 +0000 (UTC) Date: Fri, 4 Feb 2011 22:32:31 +0000 (UTC) From: "Ronen (JIRA)" To: dev@couchdb.apache.org Message-ID: <1401321121.801.1296858751015.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Created: (COUCHDB-1059) jquery couch list function and html response MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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 -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira