Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

ronaldo_calado

Problema com certificação

Recommended Posts

To tentando conseguir a certificação da W3C e to tento problema apenas com um onclick e o onsubmit, oq eu poderia fazer pra resolver esse problema??essa é a mensagem:Line 197 column 77: there is no attribute "onSubmit"...." method="post" target="votar" onSubmit="java script:enq();">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. Error Line 211 column 74: there is no attribute "onClick"....r" src="imagens/submit_button.jpg" onClick="Submeter();" />Oq eu devo fazer??

Compartilhar este post


Link para o post
Compartilhar em outros sites

Ronaldo... só com o q você colocou não dá pra gente adivinhar o q está ocorrendo... coloca o codigo intero!falow

Compartilhar este post


Link para o post
Compartilhar em outros sites

Ronaldo... só com o q você colocou não dá pra gente adivinhar o q está ocorrendo... coloca o codigo intero!

 

falow

Foi mal, realmente me esqueci de colocar o código, ai vai ele:

 

java script:

 

function abrir(pag) { window.open(pag, 'votar', 'scroll=no, width=200, height=100'); }

function enq() { abrir('resp_enquete.php'); }

Formalario q apresenta os problemas:1

 

<form action="resul_enquete.php" method="post" target="votar" onSubmit="java script:enq();">

 

<span class="style7">ENQUETE<br />

 

include "conecta.php";

 

$comando = mysql_query("SELECT * FROM enquetes WHERE ativo='1'");

 

$linha = mysql_fetch_array($comando);

 

$id_enquete = $linha['id_enquete'];

$pergunta = $linha['pergunta'];

?>

 

 

<input type="hidden" value="<? echo $id_enquete ?>" name="id" />

<span class="style10"><? echo $pergunta ?>

<input name="resposta" type="radio" class="style17" value="sim" />

SIM

<input name="resposta" type="radio" class="style17" value="nao" />

Não <font color="#000000" face="ARIAL">  

<input type="image" value="votar" src="imagens/submit_button.jpg" onClick="Submeter();" />

</font> </span></span></form></td>

Oq eu preciso fazer??

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.