Skip to main content
Participant
August 7, 2013
Question

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

  • August 7, 2013
  • 2 replies
  • 710 views

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 has been closed for replies.

    2 replies

    Participant
    August 21, 2013

    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.

    Inspiring
    August 7, 2013

    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