2 Replies Latest reply on Aug 21, 2013 4:30 AM by vikram barbade

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

    vikram barbade

      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...

        • 1. Re: how to color the tabs of <cflayout>? Because i am getting an error in java script "Uncaught TypeErro
          Kaif Akbar Level 1

          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

          • 2. Re: how to color the tabs of <cflayout>? Because i am getting an error in java script "Uncaught TypeErro
            vikram barbade Level 1

            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.