Crowbar Action

For slash slash p read slash p - the forum adds the second, at least in preview

I embed PHP code in Freeway pages by adding

    <?php
    include "file.inc"
    ?>

as markup. The recent discussions saying to use the Crowbar Action where the PHP generates DIVs to avoid them being inside

<//p> tags explain why some browsers had problems.

I was wondering whether it would also be correct to just start each inclusion with a <//p> and end it with a

instead, as in

    <//p>
    <?php
    include "file.inc"
    ?>
    <p>

The empty paragraphs cause no problems for me. I can’t see why it would be syntactically incorrect, but others have more ‘feel’ for this than I do.

David


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

An empty p will take up some vertical space in some browsers but not others. If you’re comfortable with some uncertainty in your design, then you can use this trick. Is there a problem with the Action that makes you want to avoid using it?

Walter


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

At 09:26 -0500 2/1/09, waltd wrote:

An empty p will take up some vertical space in some browsers but not
others. If you’re comfortable with some uncertainty in your design,
then you can use this trick. Is there a problem with the Action that
makes you want to avoid using it?

No problem, it’s just one less thing to go wrong :slight_smile:

And if I put it in the include file, I can include it in different
places without having to remember to Crowbar it.

David


David Ledger - Freelance Unix Sysadmin in the UK.
HP-UX specialist of hpUG technical user group (www.hpug.org.uk)
email@hidden
www.ivdcs.co.uk


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

Think of the CrowBar as a drop-in replacement for a Markup Item.
That’s all it is in this use-case. It is a Markup Item without the
drawback of the Freeway-drawn enclosing P. It does other things as
well, but when you include it as an inline object, that’s all it does.

Walter

On Jan 2, 2009, at 11:50 AM, David Ledger wrote:

At 09:26 -0500 2/1/09, waltd wrote:

An empty p will take up some vertical space in some browsers but
not others. If you’re comfortable with some uncertainty in your
design, then you can use this trick. Is there a problem with the
Action that makes you want to avoid using it?

No problem, it’s just one less thing to go wrong :slight_smile:

And if I put it in the include file, I can include it in different
places without having to remember to Crowbar it.

David


David Ledger - Freelance Unix Sysadmin in the UK.
HP-UX specialist of hpUG technical user group (www.hpug.org.uk)
email@hidden
www.ivdcs.co.uk


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


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