• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Aug 07, 2013 Aug 07, 2013

Copy link to clipboard

Copied

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

Views

636

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Aug 07, 2013 Aug 07, 2013

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 21, 2013 Aug 21, 2013

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation