(ot) quick Ext question

2009-07-01 Thread Don L

Sorry for the ot but this is a quick one.

How to use the bodyStyle attribute for Window object?

// Ext 2

var ewin = new Ext.Window ({
  // x:200,
  // y:200,
  width:350,
  height:350,
  border:true,
  resizable:true, 
  // try 1
  // bodyStyle: [{background-color:white; color:black; padding-left:10px}]

  // try 2
  // bodyStyle: [{background-color:'white', color:'black', padding-left:10px}]

  });

// results
neither try 1 nor try 2 worked in IE7 nor Firefox 3.0.11 on XP SP3.

How to?

Also, when I include the x and y attributes, the window failed to be opened, 
weird.

Thanks.

Don
P.S. Need to fix my firebug 

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


Re: (ot) quick Ext question

2009-07-01 Thread Cutter (ColdFusion)

Not sure, the ExtJs forums are probably your best bet on this. Try:

bodyStyle:'background-color:white;color:black;padding-left:10px;'

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com


On 7/1/2009 10:16 AM, Don L wrote:
 Sorry for the ot but this is a quick one.

 How to use the bodyStyle attribute for Window object?

 // Ext 2

 var ewin = new Ext.Window ({
// x:200,
// y:200,
width:350,
height:350,
border:true,
resizable:true,
// try 1
// bodyStyle: [{background-color:white; color:black; padding-left:10px}]

// try 2
// bodyStyle: [{background-color:'white', color:'black', 
 padding-left:10px}]

});

 // results
 neither try 1 nor try 2 worked in IE7 nor Firefox 3.0.11 on XP SP3.

 How to?

 Also, when I include the x and y attributes, the window failed to be opened, 
 weird.

 Thanks.

 Don
 P.S. Need to fix my firebug

 

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


Re: (ot) quick Ext question

2009-07-01 Thread Cutter (ColdFusion)

You may also be better suited, with multiple attributes, to apply a class:

bodyCssClass source/Panel.html#cfg-Ext.Panel-bodyCssClass: 'myWindowClass'

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com


On 7/1/2009 10:16 AM, Don L wrote:
 Sorry for the ot but this is a quick one.

 How to use the bodyStyle attribute for Window object?

 // Ext 2

 var ewin = new Ext.Window ({
// x:200,
// y:200,
width:350,
height:350,
border:true,
resizable:true,
// try 1
// bodyStyle: [{background-color:white; color:black; padding-left:10px}]

// try 2
// bodyStyle: [{background-color:'white', color:'black', 
 padding-left:10px}]

});

 // results
 neither try 1 nor try 2 worked in IE7 nor Firefox 3.0.11 on XP SP3.

 How to?

 Also, when I include the x and y attributes, the window failed to be opened, 
 weird.

 Thanks.

 Don
 P.S. Need to fix my firebug

 

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


Re: (ot) quick Ext question

2009-07-01 Thread Don L

Cutter,

You're right.
items: [{bodyStyle: background-color:white; color:black; padding-left:10px}]
works.  But the window's border did not show up though the attribute is 
specified.

Yeah, I'll try the ext forum.

Many thanks.

Don

Not sure, the ExtJs forums are probably your best bet on this. Try:

bodyStyle:'background-color:white;color:black;padding-left:10px;'

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com


On 7/1/2009 10:16 AM, D
 

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