Bruno Nunes
Tue, 08 Dec 2009 10:03:58 -0800
Same for me. No matter what i do the style is always ugly gray. did you find a solution for this?
thanks
Bruno
>Hmmm.. The background color is gray by default on my machine for whatever
>reason. Also, for some reason, the headerstyle attribute works, but the
>bodystyle attribute does not. I'll play around with it some more and see if
>I can get it to work.
>
>
>this code worked fine for me - a cfwindow with blindingly blue background
>popped up:
>
><cfajaximport tags="cfwindow"><!--- need this because cfwindow is created
>via js only ---> <script type="text/javascript"> doWindow = function() {
> 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', 'some-page.cfm',
>wConfig); //change some-page.cfm to your url } </script> <body
>onload="doWindow();"> </body>
>
>Azadi Saryev
>Sabai-dee.com
>http://www.sabai-dee.com/
>
>
>On 13/11/2009 08:15, Joshua Rowe wrote:
>> How do I set the bodystyle attribute for the ColdFusion.Window.create()
>function? I tried creating a JavaScript object like so, but it didn't work:
>>
>> var windowConfig = new Object();
>> windowConfig.bodystyle = "background-color: white;";
>> ColdFusion.Window.create(name, title, url, windowConfig);
>>
>> I read somewhere that you cannot set the bodystyle attribute when creating
>a cfwindow this way. Any thoughts?
>>
>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328966
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4