On May 11, 2011, at 10:20 AM, Jeffrey Stern wrote:
Actually have one more question for you if you don’t mind.
I started checking my other pages for validation as well and see I
have a couple of issues. I have a couple of java script feeds coming
from an external music site. Took their code and pasted into html
markup items. Getting a couple of validation errors. Can I use the
Crowbar action with the javascript as well?
You can, although you only need it if these Markup Items are inline –
within a run of text – appearing as a tiny [ H ] box within a run of
text, as if it was a little rectangular image or character. Markup
Items that you place on the page, that have dimensions and can be
dragged around for layout reasons, are either TD (table cells) or DIV
tags, depending on your layout method. These can contain any sort of
code element without error.
CrowBar, when used inline within a run of text, observes these
conventions:
If the CrowBar element is the only thing on a line, then the
surrounding P tag (or other text container tag) is removed entirely,
and the CrowBar code is entirely responsible for providing any sort of
container tag needed to make the resulting page valid again.
If the CrowBar element is the first thing within a run of text, then
the code contained in the CrowBar is moved outside of the P tag so
that it appears before the remainder of the text. If the layout looked
like this:
<p>[CrowBar]Some fine text here.</p>
the result would be
[CrowBar]<p>Some fine text here.</p>
The exact same thing happens at the other end of the container tag,
with the CrowBar appearing after the close tag, rather than before it.
Dan J also at one time helped me to change the typeface color and
appearance of some of the feeds. We did it by creating a couple of
new styles (e.g., body#music .hvmusic_date) and adding some text-
align and text color attributes through the extended styles menu.
The validation is giving me an error message for the # sign in the
body#music style.
That sounds fishy. A # is used at the beginning of a color value to
mark it as a hexadecimal color. It’s possible that the error is
elsewhere.
How would I change this. Can I just remove the #sign? Would Crowbar
help to resolve these?
Thanks Jeff
ps. Page link again is: http://www.beanrunnercafe.com/test/index.php
I don’t see your # error on the page above, but I do see a lot of
issues with your URLs to the PHP page being encoded incorrectly. Go
through those links and replace & in the URL with & amp; (remove the
space between the ampersand and the word amp when you do – I left the
space there so the Web forum wouldn’t replace it with an &). That will
clear nearly all of the other errors on this page. The last two errors
I can’t really imagine Freeway would generate, so they probably come
from this calendar script. It’s generating HTML3.2-valid code, but the
remainder of your page is a much higher DOCTYPE. Unless you can
rewrite this calendar, you’re going to have to give up on these being
correct.
Walter
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