Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 67976 invoked from network); 2 Aug 2010 10:32:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Aug 2010 10:32:58 -0000 Received: (qmail 12260 invoked by uid 500); 2 Aug 2010 10:32:56 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 12119 invoked by uid 500); 2 Aug 2010 10:32:54 -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 12078 invoked by uid 99); 2 Aug 2010 10:32:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Aug 2010 10:32:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aluxob@googlemail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-ew0-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Aug 2010 10:32:47 +0000 Received: by ewy20 with SMTP id 20so1609318ewy.11 for ; Mon, 02 Aug 2010 03:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=jvFYw8Sq5Mvgu8PfL/rcLixw/eQNNhRDi8UzI5xYp3g=; b=QaIMAfVxndNVDHjfisEHX2Rg2Ze2gFCR2hr5WnWjrC4z1fNtGc646PVRDBMmTUbxBt QKIEOXmAFqx9e9C/J+1lcJYewzSV0JdITHy/JDTqbbG8B0C2Osrk36s8Sr9CMGuhgCX8 jluM/vPx8r1whWpHOJKEcgcLwuuZnPaSI/r9I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=befdYWL4EWcVPs18HusOFzqW+R/9O3kgfnTd7uGsuFP8tiq0q0iFZrDhysWJXoUNY9 gxZ1SZBjpwHqwvDnofGXOUpa04kyxWykJaiih1TyZ56X4B7V1aIY35zkHriUFvHzx/SG PRI1KNvghNKYPDcxNrVMI/PgIqTPxH72w5Ib0= MIME-Version: 1.0 Received: by 10.213.110.6 with SMTP id l6mr3585452ebp.84.1280745146862; Mon, 02 Aug 2010 03:32:26 -0700 (PDT) Received: by 10.14.29.73 with HTTP; Mon, 2 Aug 2010 03:32:26 -0700 (PDT) Date: Mon, 2 Aug 2010 12:32:26 +0200 Message-ID: Subject: redirect from update, howto? (find the mistake) From: Alux To: CouchDB User Group Content-Type: multipart/alternative; boundary=0015174767f086cbbb048cd4b7a8 X-Virus-Checked: Checked by ClamAV on apache.org --0015174767f086cbbb048cd4b7a8 Content-Type: text/plain; charset=UTF-8 Hello, I use the new in-place update functionality, and I want to de-uglify its appearance in the browser by redirecting it back to the page that stared the action. So I took some suggestions from wiki.apache.org/couchdb/Formatting_with_Show_and_List and tried the following, but to no avail function(doc, req) { var field = req.query.field; var value = req.body.substring(6); doc[field] = value; return [doc, {'code': 302, 'body': 'See other', 'headers': {'Location': '/'}}]; } The browser (opera, firefox) show me the "See other", instead of going to / Probably it's me who makes the mistake, can you please point me to it? Thank you, alxu --0015174767f086cbbb048cd4b7a8--