Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 33352 invoked from network); 22 Nov 2010 05:14:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 05:14:54 -0000 Received: (qmail 94427 invoked by uid 500); 22 Nov 2010 05:15:24 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 94192 invoked by uid 500); 22 Nov 2010 05:15:24 -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 94184 invoked by uid 99); 22 Nov 2010 05:15:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 05:15:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [207.58.155.150] (HELO vps.myquickref.com) (207.58.155.150) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 05:15:17 +0000 Received: from ppp118-209-245-220.lns20.mel6.internode.on.net ([118.209.245.220] helo=[192.168.1.40]) by vps.myquickref.com with esmtpa (Exim 4.69) (envelope-from ) id 1PKOjw-0008GX-0b for user@couchdb.apache.org; Mon, 22 Nov 2010 00:14:56 -0500 Date: Mon, 22 Nov 2010 16:14:40 +1100 From: Neville Franks Reply-To: subs@surfulater.com Organization: Soft As It Gets Pty Ltd X-Priority: 3 (Normal) Message-ID: <978215475.20101122161440@surfulater.com> To: user@couchdb.apache.org Subject: couch.app.db.changes() usage MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.myquickref.com X-AntiAbuse: Original Domain - couchdb.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - surfulater.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have replication working and want update my UI when changes are pushed to the target database. I've read about _changes and found the couch.app.db.changes() function in jquery.couch.js However I can't work out how to use the function. I assume I need to set up listener, but my knowledge of Javascript is not yet what it needs to be. Unfortunately the docs at http://www.couch.io/page/library-jquery-couch-js-database don't even list the changes() function. Can some help me here and also let me know what the options param is for. Also in Google Chrome the spinning waiting image on the Tab is continuously showing when app.db.changes() is running. And the mouse cursor shows an arrow+hour glass. I'm pretty sure I've seen this mentioned somewhere. Firefox doesn't do this. Is there any way to work-around this? It makes for a not very good user experience. Thanks. -- Best regards, Neville Franks, http://www.surfulater.com http://blog.surfulater.com