← Desenvolvimento

Dúvida em php/XHTML?!

Lida 2126 vezes

Offline

Master 
Membro
Mensagens 462 Gostos 0
Troféus totais: 25
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

Ora bem, tenho uma pequena dúvida em relação a um resultado de uma verificação do validator.w3.org. Dá erro seguinte:

Error Line 123, column 9: there is no attribute "onload" .

onload="iFrameHeight()"      id="blockrandom"

Explicação do validator:
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

Alguém sabe o que falta... procurei no google e não encontrei nada!

Obrigado!
Offline

Spread 
Membro
Mensagens 1433 Gostos 2
Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3 Level 2

Isso parece ser do joomla. Básicamente ele está a incluir nessa página o código que está na pagina template.php.

Cumps 8)
Offline

Master 
Membro
Mensagens 462 Gostos 0
Troféus totais: 25
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

Citação de: "Spread"
Isso parece ser do joomla. Básicamente ele está a incluir nessa página o código que está na pagina template.php.

Cumps 8)

Obrigado pela resposta!

Exacto é do Joomla!
Bem me parecia que era isso, só que há algo que me intriga... está a incluir o conteúdo do file .php, mas sempre, ou com alguma condicionante?

A parte  / XXXXXXX/  faz o quê no código? Faz parte do caminho para o ficheiro o file php ?
Offline

Spread 
Membro
Mensagens 1433 Gostos 2
Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3 Level 2

Inclui sempre. Se fosse um include once é que apenas incluiria se já não o tivesse feito anteriormente. /templates nesse contexto é parte da url assim como o $ m o s C o n f i g _ a b s o l u t e _ p a t h .

Cumps 8)
Offline

Ricardo75 
Membro
Mensagens 1660 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Se abrires o template.php já vês o que faz :)
Offline

Master 
Membro
Mensagens 462 Gostos 0
Troféus totais: 25
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

Obrigado Spread e Ricardo75!

Tenho mais um pequeno "problema", está no primeiro post deste tópico (reciclei o tópico, pois no reciclar é que está o ganho  :D  )
Obrigado
Offline

Ricardo75 
Membro
Mensagens 1660 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Em que contexto aparece esse onload?
Offline

Spread 
Membro
Mensagens 1433 Gostos 2
Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3 Level 2

Como diz lá, o tipo de página que estás a tentar validar não suporta essa função , nesse local. Altera a primeira linha,do doctype para html transitional e vê se já valida.

Cumps 8)
Offline

Master 
Membro
Mensagens 462 Gostos 0
Troféus totais: 25
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

Antes de mais, obrigado pelas respostas, mais uma vez!

Citação de: "Ricardo75"
Em que contexto aparece esse onload?

Penso que tem a ver com o Wrapper (Joomla!)


Citação de: "Spread"
Como diz lá, o tipo de página que estás a tentar validar não suporta essa função , nesse local. Altera a primeira linha,do doctype para html transitional e vê se já valida.

Cumps 8)

Já é!


*edit: mudei de página no wrapper - tirei a de teste e pôs a que vai ficar, e já validou!
Obrigado pela ajuda!