For Freeway Nerds Only

Freeway uses id tags to style html items. I prefer using class styles to do this instead. Applying a class style to an item in Freeway is easy, but to make it work I use an action to remove the id attribute. Freeway still writes the id style to the stylesheet, but since the item no longer has the attribute, there’s nothing to interfere with the class style. That works very well for me.

But there are times when I need that id attribute… mostly for internal navigation and scripting reasons.

So by not using an action on the id, the attribute is preserved… but that also puts the style back on the id, right where I don’t want it.

Now to tell you about the amazingly cool way I fixed this, I first have to tell you about something else.

Long ago I discovered a fundamental truth about Freeway’s Extended dialog feature… if you style something in the workspace-- then style it differently in the item’s Extended Style dialog, Freeway will ignore the workspace value in favor of the Extended value. This is handy for getting Freeway to write CSS exactly the way you like it.

The bulb is now lighting above my head.

As an experiment, I used the Extended dialog to set a different id attribute for an item in Freeway’s workspace. I’d never thought to do that before… but it works! Freeway still writes the id style in the stylesheet-- using the workplace name. However, it writes the item in page code using the id set by the Extended feature-- which has only the class style that I applied.

Anyway, that’s what I was all so excited about and just couldn’t wait to tell.

Super Ultra Cool!


offtopic mailing list
email@hidden
Update your subscriptions at:

It’s so good to see Freeway being pushed ever further, Ernie! I’d love to see the results.

Joe

On 13 Feb 2016, at 06:04, The Big Erns email@hidden wrote:

Super Ultra Cool!


offtopic mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

I used the Extended dialog to set a different id attribute for an item in Freeway’s workspace. I’d never thought to do that before… but it works! Freeway still writes the id style in the stylesheet— using the workplace name. However, it writes the item in page code using the id set by the Extended feature— which has only the class style that I applied.

Ace find Ernie

That will Soooooo help!

D


offtopic mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

This was meant for another thread, but uses the ID switch trick. When I have time, I’ll do one just about the hack.

http://cssway.thebigerns.com/workbench/hidden-forms-pseudo-target/


offtopic mailing list
email@hidden
Update your subscriptions at: