From user-return-11972-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue Aug 10 17:47:03 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 93981 invoked from network); 10 Aug 2010 17:47:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Aug 2010 17:47:03 -0000 Received: (qmail 72399 invoked by uid 500); 10 Aug 2010 17:47:02 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 72346 invoked by uid 500); 10 Aug 2010 17:47:01 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 72337 invoked by uid 99); 10 Aug 2010 17:47:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Aug 2010 17:47:01 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Whimsica@aol.com designates 205.188.105.144 as permitted sender) Received: from [205.188.105.144] (HELO imr-da02.mx.aol.com) (205.188.105.144) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Aug 2010 17:46:50 +0000 Received: from imo-da04.mx.aol.com (imo-da04.mx.aol.com [205.188.169.202]) by imr-da02.mx.aol.com (8.14.1/8.14.1) with ESMTP id o7AHkKxh032134 for ; Tue, 10 Aug 2010 13:46:21 -0400 Received: from Whimsica@aol.com by imo-da04.mx.aol.com (mail_out_v42.9.) id o.c7c.72892c4e (37067) for ; Tue, 10 Aug 2010 13:46:18 -0400 (EDT) Received: from smtprly-mb03.mx.aol.com (smtprly-mb03.mx.aol.com [64.12.207.150]) by cia-db05.mx.aol.com (v129.4) with ESMTP id MAILCIADB051-5c774c61906629a; Tue, 10 Aug 2010 13:46:18 -0400 Received: from webmail-d053 (webmail-d053.sim.aol.com [205.188.170.229]) by smtprly-mb03.mx.aol.com (v129.4) with ESMTP id MAILSMTPRLYMB036-5c774c61906629a; Tue, 10 Aug 2010 13:46:14 -0400 References: <8CD06C6EAA13C18-1504-13C@webmail-d053.sysops.aol.com> To: user@couchdb.apache.org Subject: Re: definitive guide show examples don't work Date: Tue, 10 Aug 2010 13:46:14 -0400 X-AOL-IP: 75.17.117.178 In-Reply-To: X-MB-Message-Source: WebUI MIME-Version: 1.0 From: whimsica@aol.com X-MB-Message-Type: User Content-Type: multipart/alternative; boundary="--------MB_8CD06CB0FA9FC37_1504_10BB_webmail-d053.sysops.aol.com" X-Mailer: AOL Webmail 32360-STANDARD Received: from 75.17.117.178 by webmail-d053.sysops.aol.com (205.188.170.229) with HTTP (WebMailUI); Tue, 10 Aug 2010 13:46:13 -0400 Message-Id: <8CD06CB0FA53971-1504-74F@webmail-d053.sysops.aol.com> X-AOL-SENDER: Whimsica@aol.com X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO ----------MB_8CD06CB0FA9FC37_1504_10BB_webmail-d053.sysops.aol.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" I don't believe you can put something that has quotes in quotes.=20 Encasing it in single quotes throws an error. Dan =20 =20 =20 -----Original Message----- From: Randall Leeds To: user@couchdb.apache.org Sent: Tue, Aug 10, 2010 10:37 am Subject: Re: definitive guide show examples don't work Put it in quotes? On Aug 10, 2010 10:17 AM, wrote: In the definitive guide I am supposed to be able to paste this in for a show function(doc, req) { return { base64 : ["iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAsV", "BMVEUAAAD////////////////////////5ur3rEBn////////////////wDBL/", "AADuBAe9EB3IEBz/7+//X1/qBQn2AgP/f3/ilpzsDxfpChDtDhXeCA76AQH/v7", "/84eLyWV/uc3bJPEf/Dw/uw8bRWmP1h4zxSlD6YGHuQ0f6g4XyQkXvCA36MDH6", "wMH/z8/yAwX64ODeh47BHiv/Ly/20dLQLTj98PDXWmP/Pz//39/wGyJ7Iy9JAA", "AADHRSTlMAbw8vf08/bz+Pv19jK/W3AAAAg0lEQVR4Xp3LRQ4DQRBD0QqTm4Y5", "zMxw/4OleiJlHeUtv2X6RbNO1Uqj9g0RMCuQO0vBIg4vMFeOpCWIWmDOw82fZx", "vaND1c8OG4vrdOqD8YwgpDYDxRgkSm5rwu0nQVBJuMg++pLXZyr5jnc1BaH4GT", "LvEliY253nA3pVhQqdPt0f/erJkMGMB8xucAAAAASUVORK5CYII=3D"].join(''), headers : { "Content-Type" : "image/png" } }; } But it says invalid json string and won't accept it. How do I get this to work? Dan =20 ----------MB_8CD06CB0FA9FC37_1504_10BB_webmail-d053.sysops.aol.com--