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

coldfusion.window.create background-color

Guest
Feb 21, 2014 Feb 21, 2014

Copy link to clipboard

Copied

How do I over-ride the gray screen color in a cfwindow that is created by coldfusion.window.create?

The following JS does not work for IE11 on Windows 8.1:

 

var

wConfig = new Object(); 

wConfig.bodystyle = "background-color: blue"; //changed it to 'blue'

wConfig.center = true; //center the window on page

ColdFusion.Window.create('mywin', 'test window', 'theUrl.com', wConfig);

The above launches the window fine, but keep the same gray color. The wConfig.center=true works, but not the bodystyle. I have also tried 'bodyStyle' as I hear CF10 is case-senstive(?) for URLs, given this is AJAX.

Views

548

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
Guide ,
Feb 21, 2014 Feb 21, 2014

Copy link to clipboard

Copied

Have you tried using your browser's developer tools to examine the CSS properties of the background being drawn by ColdFusion.Window?  If you can find the CSS property that contains the grey background color, maybe you can override it in a <style> block in the head of your page.

-Carl V.

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
Guest
Feb 21, 2014 Feb 21, 2014

Copy link to clipboard

Copied

LATEST

Excellent idea. Will try, thank you!

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