Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 31976 invoked from network); 15 Jul 2008 16:08:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jul 2008 16:08:56 -0000 Received: (qmail 72557 invoked by uid 500); 15 Jul 2008 16:08:53 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 72508 invoked by uid 500); 15 Jul 2008 16:08:53 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 72496 invoked by uid 99); 15 Jul 2008 16:08:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2008 09:08:53 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=FORGED_MUA_OUTLOOK,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [170.215.19.28] (HELO server.csparks.com) (170.215.19.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2008 16:08:00 +0000 Received: from Asus (asus.csparks.com [192.168.1.6]) by server.csparks.com (8.14.1/8.14.1) with SMTP id m6FG6MbT009445 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Tue, 15 Jul 2008 11:06:23 -0500 Message-ID: <2B66CFC41B554D1496F9A39EA1F53776@Asus> From: "Hugh Sparks" To: Subject: Cocoon 2.2 - CForm with a dojo slider Date: Tue, 15 Jul 2008 11:06:27 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-Virus-Checked: Checked by ClamAV on apache.org I have an ajax cform with two widgets: one is a slider and the other a simple box to display the value. I want the value of the slider to be displayed continuously in the box as the user moves the slider. The flowscript attaches a listener function to the slider. This function simply displays the current value. var form ; function updateSlider() { var value = form.lookupWidget("scrollBar").value ; form.lookupWidget("valueBox").setValue(value) ; } function startup() { form = new Form("cview_form.xml"); form.lookupWidget("scrollBar").addValueChangedListener(updateSlider) ; while (true) form.showForm("cview-display-pipeline.jx"); } This code works correctly when the form template specifies only two boxes, i.e. widgets with no styling:
But when the widget is displayed as a slider, the value never changes on the the form:
The updateSlider function is never called. Any suggestions are appreciated. -Hugh Sparks, hugh@csparks.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org