Skip to main content
July 11, 2009
Question

cfwindow - border color

  • July 11, 2009
  • 1 reply
  • 1628 views

How do I change the color of the border or frame in the cfwindow popup?  The standard seems to be a light grey. I want to change that to black.

    This topic has been closed for replies.

    1 reply

    Dileep_NR
    Inspiring
    July 13, 2009

    Please refer this.

    http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/5/30/CFWindow-as-Image-onMouseOver-EnlargerPop-Up

    November 1, 2010

    That link is not useful for CF9's cfwindow tag.  myWindow.toolbox.remove(); causes a "toolbox is undefined" JS error.  This is NOT because the server I am using has IIS setup wrong.  Firebug is indicating that every js and css file that cfwindow is looking for is being successfully located and loaded.

    It appears to me that CF9 is using Ext version 3.0.  The CSS in the linked example is being overrided by "!important" style settings.  Even trying to override the "!important" styles is failing for me.

    There seems to be close to zero documentation out there for CF9's cfwindow tag other than the tag basics and a few basic function calls.  All the detailed examples seem to be for CF8 and no longer work.  One of the few things I found was this:

    document.getElementById(ColdFusion.Window.getWindowObject("myWindow").header.id).className = "windowHdr";

    .windowHdr {
    background-color: blue;
    }

    You change the window object's header class and then can alter the settings, but this seems like a terrible method, besides having to figure out what the border properties are to change their classes.

    Would anyone direct me to even somewhat decent and detailed documentation that is for CF9's cfwindow tag?  Thanks.