[Pro] removing the style attributes from a div which contains an image

Hi every one does there already exist an action that removes the style attributes from a div
so in other words it would convert this

	<div id="pic1" style="position:absolute; left:49px; top:25px; width:800px; height:531px; z-index:1">
		<img src="Resources/pic1.jpg" border="0" width="800" height="531" alt="pic1" style="float:left"/></div>

to this

	<div id="pic1"> <img src="Resources/pic1.jpg" border="0" width="800" height="531" alt="pic1"/></div>

other wise I suppose I can make an action but it would be bit pointless if some thing like this already exists

cheers
Max


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

Hi Max,
The Externalize action will move inline styles to either the document
head or an external file;
http://www.freewayactions.com/test/externalize/

Regards,
Tim.

On 2 Feb 2010, at 17:00, max wrote:

Hi every one does there already exist an action that removes the
style attributes from a div
so in other words it would convert this

  <div id="pic1" style="position:absolute; left:49px; top:25px;  

width:800px; height:531px; z-index:1">
pic1

to this

  <div id="pic1"> <img src="Resources/pic1.jpg" border="0"  

width=“800” height=“531” alt=“pic1”/>

other wise I suppose I can make an action but it would be bit
pointless if some thing like this already exists

FreewayActions.com - Freeware and commercial actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


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

Hi Tim
It’s a great action in fact its the biggest step forward in externalizing the CSS that anyone made and I am using it almost constantly, but I cant see how this can work in this scenario.
What I need is it to remove the attributes completely from only this item and not place them any where else.
I thought the externalize action is a page action unless I have missed this area of the action.

Anyway cheers anyway Tim
all the best max


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

Apologies for the confusion Max. Try Weaver’s ‘Remove Div Styles’
action;
http://www.coastalrugs.com/Actions/misc.actions.html
Regards,
Tim.

On 2 Feb 2010, at 20:51, max wrote:

It’s a great action in fact its the biggest step forward in
externalizing the CSS that anyone made and I am using it almost
constantly, but I cant see how this can work in this scenario.
What I need is it to remove the attributes completely from only this
item and not place them any where else.
I thought the externalize action is a page action unless I have
missed this area of the action.

FreewayActions.com - Freeware and commercial actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


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

Cheers Tim…
I do have that action but it wont allow it’s self to be used on a div with a pass through imported graphic. I am not sure why but its not recognizing it as a div.

I will contact weaver and see if this was an oversight, bug or if it was intentional.
all the best max


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

Does the ‘anonymous’ action work?

http://actionsforge.com/actions/view/12-anonymous


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

Does the ‘anonymous’ action work?

Who said that???


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

Hi Dan
Unfortunately no… the anonymous action removes the actual id reference but not the actual inline styles,
this action is used primarily for things like CMS loops

What I needed was an action that would work on any div, which would leave the div id reference but remove the inline styles. Weavers Remove Div Style action worked on a normal HTML div but would not work on a div that contained a pass through graphic.

Luckily for me… before I thought about or actually started to write an action… Tim came up trumps and has saved me hours and hours of mucking about and probably a big headache to boot.

Cheers tim :o) as usual I owe you probably not just one but probably fifty.

All the best Max


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

Hi Max,

If you need this to happen now and can’t wait for a fix/addition to Weaver’s Action then try the following:

Select the Layer item on the page
Open the Extended dialog
In the Div tab (not Div Style) click New
Enter Style in name and leave Value blank

This will verride Freeway’s style attribute and you will end up with this:

Which isn’t ideal but will get you moving.

Hope this helps,

Joe

On 3 Feb 2010, at 22:46, max wrote:

Hi Dan
Unfortunately no… the anonymous action removes the actual id reference but not the actual inline styles,
this action is used primarily for things like CMS loops

What I needed was an action that would work on any div, which would leave the div id reference but remove the inline styles. Weavers Remove Div Style action worked on a normal HTML div but would not work on a div that contained a pass through graphic.

Luckily for me… before I thought about or actually started to write an action… Tim came up trumps and has saved me hours and hours of mucking about and probably a big headache to boot.

Cheers tim :o) as usual I owe you probably not just one but probably fifty.

All the best Max


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

Hi Jo…
of course I hadn’t thought of that… :o)
cheers for the trick
Although luckily for me tim has already sent me an action that worked
cheers and all the best

max


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