Skip to main content
Participant
July 29, 2006
Question

Tabnavigator Focus

  • July 29, 2006
  • 1 reply
  • 1298 views
How do you focus on a certain page on a tabnavigator? Say I want to focus on the third tab(page) when a button is pressed?
    This topic has been closed for replies.

    1 reply

    Inspiring
    July 31, 2006
    I assume you mean navigate to

    give the tab nav an id attribute, then in the button use this to set the selectedIndex

    <cfformgroup type="tabnavigator" id="myTab">

    <cfinput type="button" name="btn_1" value="Click Me" onclick="_root.myTab.selectedIndex="2">

    Note: tab nav start at index zero

    Ken
    Inspiring
    October 15, 2009

    I didn't post the question originally, but Ken's suggestion above was exactly what I was looking for.  Thanks.