Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 19764 invoked from network); 10 Mar 2006 16:46:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Mar 2006 16:46:31 -0000 Received: (qmail 62645 invoked by uid 500); 10 Mar 2006 16:46:19 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 62539 invoked by uid 500); 10 Mar 2006 16:46:19 -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 62498 invoked by uid 99); 10 Mar 2006 16:46:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Mar 2006 08:46:19 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.137.44.177] (HELO relay.nhs.uk) (212.137.44.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Mar 2006 08:46:18 -0800 Received: from avas-checker by relay-outbound-7 with esmtp (Relay-Software 4.52) id 1FHkkX-0004O2-NO for users@cocoon.apache.org; Fri, 10 Mar 2006 16:45:57 +0000 Received: from relay.nhs.uk by rlavas02 with ESMTP id AQT51118; Fri, 10 Mar 2006 16:45:56 GMT Received: from [10.250.0.50] (helo=sirius.pldn.scot.nhs.uk) by relay-inbound-5 with esmtpa (Relay-Software 4.52) id 1FHkkW-0006nu-HV for users@cocoon.apache.org; Fri, 10 Mar 2006 16:45:56 +0000 Received: from WGH-EX1.luht.scot.nhs.uk (unverified) by sirius.pldn.scot.nhs.uk (Clearswift SMTPRS 5.1.7) with ESMTP id for ; Fri, 10 Mar 2006 16:45:55 +0000 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable x-mimeole: Produced By Microsoft Exchange V6.0.6603.0 Subject: Setting Default Focus in CForms Date: Fri, 10 Mar 2006 16:31:31 -0000 Message-ID: <4FDA5A1D7043EF4BBED0DFE956C390C0021E5616@wgh-ex1.luht.scot.nhs.uk> Thread-Topic: Setting Default Focus in CForms Thread-Index: AcZEYBZ0gAxvodb7SJ+8MmGWAWU9Bg== From: "Stewart, Gary" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi there, I've been trying to set the first form item to have focus when the form is = loaded. Normally it would just be a case of setting=20 document.form.name.focus(); but the issue seems to be that CForms uses a name:input format for the id. = Is there a way of setting the focus in CForms? I looked at the Widget API b= ut couldn't see a function to set the widget as focus (unless I'm missing s= omething... which is quite possible). Thanks, Gary ***************************************************************** The information contained in this message may be confidential or=20 legally privileged and is intended for the addressee only, If you=20 have received this message in error or there are any problems,=20 please notify the originator immediately. The unauthorised use,=20 disclosure, copying or alteration of this message is=20 strictly forbidden. ***************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org