I found a solution that effectively does the same thing as "onclick". I
do an "onTabChange" on the layout and then test to see which tab was
clicked. A code snippet is shown below.
function setup(){
var mytabs = ColdFusion.Layout.getTabLayout('budget');
mytabs.on('tabchange', doTabChange);
}
function doTabChange(tabpanel,activetab){
switch(activetab.getText()){
case "Division Allocation":
document.getElementById("budgetAmt").focus();
return;
}
}
______________________________________________________________________
Ed Szwedo
Web Development Team Lead
CSC
109 TW Alexander Drive, Building NCC, Mail Drop N176-05, Research
Triangle Park, NC 27711
Information Technology Infrastructure Solutions | Office: (919)541-3955
| Fax: (919)541-3641 | [email protected] | www.csc.com
From: Ed Szwedo/RTP/USEPA/u...@epa
To: [email protected]
Date: 04/21/2009 10:15 AM
Subject: [ACFUG Discuss] Register event to tab click for <cflayoutarea>
How do I bind events to a tab click for <cflayoutarea>?
I found out how to place focus on page load, as shown below. But how do
I register an event to a tab click?
<cfset ajaxOnLoad("setup")> (Place this at end of page)
function setup(){
ColdFusion.Layout.selectTab('budget','Extramural');
}
______________________________________________________________________
Ed Szwedo
Web Development Team Lead
CSC
109 TW Alexander Drive, Building NCC, Mail Drop N176-05, Research
Triangle Park, NC 27711
Information Technology Infrastructure Solutions | Office: (919)541-3955
| Fax: (919)541-3641 | [email protected] | www.csc.com
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-------------------------------------------------------------
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------