Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 48722 invoked from network); 14 Jan 2008 16:39:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jan 2008 16:39:03 -0000 Received: (qmail 28795 invoked by uid 500); 14 Jan 2008 16:38:51 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 28362 invoked by uid 500); 14 Jan 2008 16:38:49 -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 Delivered-To: moderator for users@cocoon.apache.org Received: (qmail 307 invoked by uid 99); 14 Jan 2008 15:47:05 -0000 X-ASF-Spam-Status: No, hits=-2.0 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) To: users@cocoon.apache.org Subject: Unable to do onClick() on a checkbox MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 Message-ID: From: Nicola Graham Date: Mon, 14 Jan 2008 15:46:32 +0000 X-MIMETrack: Serialize by Router on H01/Servers/StandardLifeGroup(Release 7.0.2|September 26, 2006) at 14/01/2008 15:46:33, Serialize complete at 14/01/2008 15:46:33 Content-Type: multipart/alternative; boundary="=_alternative 0056A888802573D0_=" X-StandardLife-MailScanner-Information: X-StandardLife-MailScanner: Found to be clean X-MailScanner-From: nicola_graham@standardlife.com X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 0056A888802573D0_= Content-Type: text/plain; charset="US-ASCII" Hi, I have a requirement to do perform some javascript based on whether a user has clicked one or more checkboxes: I have the following code: The widget definition: slb.addfeestoloan The xml code:
The onClick event is not rendered when the html page is created and thus the javascript is not executed. Changing the list-type to "radio" works. Please can you advise which events are available to the checkbox? For information, the browser being used is IE6. Many thanks. Nicola Graham Role: Systems Developer Department: IS Development Solutions (Banking) Location: 3rd Floor, Dundas House, 20 Brandon St, Edinburgh, EH3 5PP Telephone: 0131 246 1311 E-mail: nicola_graham@standardlife.com This e-mail is confidential, if you are not the intended recipient, do not retain/disclose it and please return it to us. We virus scan and monitor all e-mails but are not responsible for any damage caused by a virus/alteration of our e-mail by a third party after sending. For more information on Standard Life group, visit our website http://www.standardlife.com/ Standard Life plc (SC286832), Standard Life Assurance Limited* (SC286833) and Standard Life Employee Services Limited (SC271355) are all registered in Scotland at Standard Life House, 30 Lothian Road, Edinburgh EH1 2DH. *Authorised and regulated by the Financial Services Authority. 0131 225 2552. Calls may be recorded/monitored. Standard Life group includes Standard Life plc and its subsidiaries. Please consider the environment. Think - before you print. --=_alternative 0056A888802573D0_= Content-Type: text/html; charset="US-ASCII"
Hi,

I have a requirement to do perform some javascript based on whether a user has clicked one or more checkboxes:


I have the following code:

The widget definition:

        <fd:multivaluefield id="addfeestoloan">
                        <fd:label>
                                <i18n:text>slb.addfeestoloan</i18n:text>
                        </fd:label>                        
                        <fd:datatype base="string"/>
                        <fd:selection-list/>
        </fd:multivaluefield>

The xml code:

        <div class="foldmodule-rrcol">
                <ft:widget id="addfeestoloan">
                        <fi:styling helplink="true" list-type="checkbox" onclick="alert('hello');" />
                </ft:widget>
        </div>

The onClick event is not rendered when the html page is created and thus the javascript is not executed.

Changing the list-type to "radio" works.

Please can you advise which events are available to the checkbox? For information, the browser being used is IE6.

Many thanks
.


Nicola Graham

Role: Systems Developer                  
Department: IS Development Solutions (Banking)                  
Location: 3rd Floor, Dundas House, 20 Brandon St, Edinburgh, EH3 5PP                  
Telephone: 0131 246 1311                  
E-mail: nicola_graham@standardlife.com                  





This e-mail is confidential, if you are not the intended recipient, do not retain/disclose it and please return it to us. We virus scan and monitor all e-mails but are not responsible for any damage caused by a virus/alteration of our e-mail by a third party after sending.

For more information on Standard Life group, visit our website http://www.standardlife.com/

Standard Life plc (SC286832), Standard Life Assurance Limited* (SC286833) and Standard Life Employee Services Limited (SC271355) are all registered in Scotland at Standard Life House, 30 Lothian Road, Edinburgh EH1 2DH. *Authorised and regulated by the Financial Services Authority. 0131 225 2552. Calls may be recorded/monitored. Standard Life group includes Standard Life plc and its subsidiaries.

Please consider the environment. Think - before you print.
--=_alternative 0056A888802573D0_=--