<script type="text/_javascript_">
<![CDATA[
function getElement( el ){
return (typeof el == 'string') ? document.getElementById(el): el;
}
function submit_login(){
var log = getElement('nome_de_usuario');
var sen = getElement('senha_de_acesso');
if( log.value && sen.value ){
f = getElement('login_form');
f.action=''
f.submit ();
}else
alert('Os campos login e senha s�o obrigat�rios.\nFavor,
preencher.')
}
]]>
</script>
On 3/10/06, Sean De La Torre <[EMAIL PROTECTED]> wrote:
You should wrap your _javascript_ in a CDATA block like so:
<script type="text/_javascript_">
<![CDATA[
function getElement( el ){
return (typeof el == 'string') ? document.getElementById(el): el;
}
function submit_login(){
var log = getElement('nome_de_usuario');
var sen = getElement('senha_de_acesso');
if( log.value && sen.value ){
f = getElement('login_form');
f.action=''
f.submit ();
}else
alert('Os campos login e senha s�o obrigat�rios.\nFavor,
preencher.')
}
</script>On 3/10/06, Italo Maia <[EMAIL PROTECTED]> wrote:
TurboGears is screaming like crazy about this template of mine. says
the error is in the line 28, column 18. That line has just som
_javascript_. There shoulden't be a erro >__>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns=" http://www.w3.org/1999/xhtml"
xmlns:py="http://purl.org/kid/ns#"
py:extends="' master.kid'">
<!--
objetos:
login
senha
login_form:id
entradas:
right_items
page
perfis
now
-->
<head>
<meta content="application/xhtml+xml; charset=iso-8859-1"
http-equiv="content-type" py:replace="''"/>
<title>Bem vindo ao Wiki da UECE</title>
<script type="text/_javascript_">
function getElement( el ){
return (typeof el == 'string') ? document.getElementById(el): el;
}
function submit_login(){
var log = getElement('nome_de_usuario');
var sen = getElement('senha_de_acesso');
if( log.value && sen.value ){
f = getElement('login_form');
f.action=''
f.submit();
}else
alert('Os campos login e senha s�o obrigat�rios.\nFavor,
preencher.')
}
</script>
</head>
<body>
<div class="header">
<h2>Wiki UECE</h2>
</div>
<div class="header_bar">
<!-- Dependente de perfil -->
<div py:if="usuario in perfis">
<a href="" dados pessoais</a>
<a href="" class="mensagens">Mensagens Privadas</a>
<a href="" Wiki</a>
</div>
<!-- S� aparece caso n�o esteja logado -->
<form py:if="not perfil" action="" method="post" id="login_form">
<label for=""> <input maxlength="20" type="text" id="nome_de_usuario" name="login"
/>
<label for=""> <input maxlength="20" type="password" id="senha_de_acesso"
name="senha"/>
<input type="button" value="Enviar" />
</form>
<!-- Aparece caso esteja logado -->
<a py:if="perfil" href=""> </div>
<div class="left_body">
<ol class="left_items">
<li>
<a href=""> </li>
<li>
<a href="" de Wiki's</a>
</li>
<li>
<a href="" Somos</a>
</li>
<li>
<a href=""> </li>
</ol>
<ul>
<li class="buscar_wiki">
<input type="text" name="wiki_busca" />
<input type="button" value="Buscar"
/>
</li>
</ul>
</div>
<div class="main_body">
<div class="pagina">
<span py:content="page"></span>
</div>
</div>
<!-- Wiki's mais recentes -->
<div class="right_body">
<h3 class="title">Wiki's atualizados recentemente</h3>
<ol>
<li py:for="" in right_items">
<a href=""> </li>
</ol>
</div>
<p>Congratulations, your TurboGears application is running as of <span
py:replace="now">now</span>.</p>
</body>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

