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.


-----Original Message-----
From: Azadi Saryev [mailto:az...@sabai-dee.com] 
Sent: Thursday, November 12, 2009 7:16 PM
To: cf-talk
Subject: Re: ColdFusion.Window.create set bodystyle attribute


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:328348
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to