CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 W3C validator

Print topic Send  topic

Author Message
gcastillo

Posts: 45
Posted: 01/29/2009, 5:04 AM

Hi,

I want use standars for w3c.

I run validator and after solutioned some errors, I have 3 errors from w3c validator.

2 errors:
…ref="Styles/adx.css" type="text/css" rel="stylesheet" />
…sic/Menu.css" type="text/css" rel="stylesheet" />

I created menu with menu builder in header.php and CCS included above code in header html.

W3C say to me that this code is incorrect because is after </head> and this is not allowed.

1 error:

…" name="scrm_cue_razon" autocomplete="off" />

I use prototype PTAutocomplete in this <input> and attribute autocomplete="off" is incorrect for W3C becouse "the document type you are using does not support that attribute for this element."

I want use 100% standars from w3c.
Do you can help me for eliminate this erros?

pdta: I sorry my bad english, but please, help me.


_________________
Giovanni
View profile  Send private message
maxhugen

Posts: 272
Posted: 02/02/2009, 6:57 PM

I reported the issue of using a CCS menu in an Include Page to YesSoftware support on 14 Aug 2008:
Quote :
I've used the Menu Builder to create a database menu in an Include Page. This Include Page therefore has a link to the menu stylesheets, eg:

<link href="{page:pathToRoot}Styles/adx.css" type="text/css" rel="stylesheet">

As the Include Page is within the <body>, these links are within the <body> as well - which causes the page to fail HTML validation (tested via http://validator.w3.org).

Is there a way around this?

Obviously, its preferable to add an Include page, rather than build a menu on every webpage.
Their reply:
Quote :
Thank you, I see the issue.

In fact the styles are applied just fine even though the reference is located inside the body. But as this approach is considered invalid I will submit this issue to our developer team for correction.

I ended up creating my own menu system. As it's still an issue, perhaps you could email YesSoftware support as well?
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com
View profile  Send private message
datadoit
Posted: 02/03/2009, 5:24 AM

In my includes I never have anything in it that would normally be in the
<head> section of a document. Only keep that info in the parent document.

So it's just a matter of deleting any references such as <link ref> in
the include page's HTML. This is also inclusive of any style sheet
references, javascript, etc.

I don't see this as a CodeCharge -problem- at all. Or am I missing
something?
gcastillo

Posts: 45
Posted: 02/03/2009, 6:05 AM

@maxhugen Thanks for your reference, I send email to Yessoftware support .

@datadoit The problem is that CCS create <link ref> automaticatly in header include page. And header page is in <body> tag. Then <link ref> is in <body> and is not a standar W3C. If I eliminate <link ref>, CCS create back again when I regenerated the code.

Best regards,

_________________
Giovanni
View profile  Send private message
datadoit
Posted: 02/03/2009, 6:12 AM

> @datadoit The problem is that CCS create <link ref> automaticatly in header
> include page. And header page is in <body> tag. Then <link ref> is in <body> and
> is not a standar W3C. If I eliminate <link ref>, CCS create back again when I
> regenerated the code.
>
> Best regards,
>
> _________________
> Giovanni
> ---------------------------------------

What exactly does 'regenerated the code' mean? Please explain. Are you
certain that your page is specified as an includable page? (no <head>
section or <meta> tags at all)
gcastillo

Posts: 45
Posted: 02/03/2009, 8:02 AM

Quote datadoit:
> @datadoit The problem is that CCS create <link ref> automaticatly in header
> include page. And header page is in <body> tag. Then <link ref> is in <body> and
> is not a standar W3C. If I eliminate <link ref>, CCS create back again when I
> regenerated the code.
>
> Best regards,
>
> _________________
> Giovanni
> ---------------------------------------

What exactly does 'regenerated the code' mean? Please explain. Are you
certain that your page is specified as an includable page? (no <head>
section or <meta> tags at all)

My page is:

<code>
<html>
...
<head>
...
<link href="style.css">
</head>
<body>
{header}
...
</body>
<code>

Header is an include page and I create inside a builder menu, and CCS write in header.html this:
<code>
<link href="menu.css">
<code>

Then this <link href="menu.css"> is inside <body> tag. If I eliminate this <link href>, CCS create again when I publish header.ccs

Best Regards





_________________
Giovanni
View profile  Send private message
maxhugen

Posts: 272
Posted: 02/03/2009, 2:03 PM

@datadoit, when you publish the Include page, CCS regenerates the page and re-inserts the deleted stylesheet link as Giovanni indicated. YesSoftware have acknowledged this issue.
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com
View profile  Send private message
datadoit
Posted: 02/03/2009, 3:16 PM

Understood. Doesn't happen in 3.2.

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.