fwBackgroundImage?

I’m working on an Action that is attempting to work with an item that may have a background image applied to it. I can trawl through the element’s style attribute looking for a background image, positioning etc on publish but I’d rather do this at design time. Ideally I’m looking for something like fwItem.fwBackgroundImage to get the image or fwItem.fwBackground to get an array of properties but can’t seem to find anything on the subject.

What is the best way to get an element’s background properties?
Thanks in advance,
Tim.

FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Tim,

I’m afraid this information isn’t exposed at design time.

Joe

On 22 Nov 2012, at 14:52, Tim Plumb email@hidden wrote:

I’m working on an Action that is attempting to work with an item that may have a background image applied to it. I can trawl through the element’s style attribute looking for a background image, positioning etc on publish but I’d rather do this at design time. Ideally I’m looking for something like fwItem.fwBackgroundImage to get the image or fwItem.fwBackground to get an array of properties but can’t seem to find anything on the subject.

What is the best way to get an element’s background properties?
Thanks in advance,
Tim.

FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK. Thanks for the confirmation Joe. I’ll log a suggestion for this.

In the meantime what are the best practices for extracting style information like this (background image, position, etc)? Does anything like a library or a function already exist to handle style extraction?
Regards,
Tim.

On 22 Nov 2012, at 16:03, Joe Billings wrote:

I’m afraid this information isn’t exposed at design time.


FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Look in the Scripty Actions for my own take on the GetCSSAttribute and SetCSSAttribute functions, which I ripped from one of the Softpress Actions long ago and significantly improved.

Also look at the hasClassName and addClassName and removeClassName (ported from Prototype.js) that do similar magic with classes.

Walter

On Nov 22, 2012, at 1:45 PM, Tim Plumb wrote:

OK. Thanks for the confirmation Joe. I’ll log a suggestion for this.

In the meantime what are the best practices for extracting style information like this (background image, position, etc)? Does anything like a library or a function already exist to handle style extraction?
Regards,
Tim.

On 22 Nov 2012, at 16:03, Joe Billings wrote:

I’m afraid this information isn’t exposed at design time.


FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options