Skip to main content
Participant
Aug 7, 2013 7:36 AM UTC
Question

how to color the tabs of <cflayout>? Because i am getting an error in java script "Uncaught TypeErro

how to color the tabs of <cflayout>? Because i am getting an error in java script "

Uncaught TypeError: Object [object Object] has no method 'getTab'"?? please help me out...

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Participant
    Aug 21, 2013 11:30 AM UTC

    thanks for reply akbar...

    See my basic problem is i am getting an error of undefined method getTab();in javascript

    in following code:

    var colorTab = function(tab, tabName, color)

    {

              // get the underlying EXT object for the tab layout

              var tabs = ColdFusion.Layout.getTabLayout(tab);

              // get the tab you want to color

              var tab = tabs.getTab(tabName);

              // set the color of this tab via the DOM

              tab.el.dom.firstChild.firstChild.firstChild.style.color = color;

    }

    there is no method getTab() in coldfusion9.

    so please tell me alternative method to getTab() method.

    please help me out.

    Translate
    Inspiring
    Aug 7, 2013 4:28 PM UTC

    One of the way would be by calling your defined css style as in below code, whereas you can define one or more attributes in that css style:-

    ------

    <cflayout

        type="border|hbox|tab|vbox" align="center|justify|left|right"  name="string"  padding="integer"

        style="your_defined_css_style"

        tabHeight="measurement"  tabPosition="top|bottom">

            cflayoutarea tags

    </cflayout>

    -----

    In this way, you would be able to implement that.

    Whereas for error, it looks that getTab is not defined there.

    Regards,

    Kaif Akbar

    Message was edited by: Kaif Akbar

    Translate