Messana
Outubro 2, 2010, 11:13pm
#1
Eu queria saber porque qndo eu clico no botar Enviar! ele não está verificando a função!
ele deveria ver os campos vazio e deixá-los amarelos e em focus.
me ajuda
Cadastro de Curriculo
DADOS PESSOAIS
Nome:
Endereço:
E-mail:
Idade:
Telefone:
Bairro:
Cidade
CEP
Estado
SP
RJ
Sexo
M
F
ESCOLARIDADE
PREFERENCIA PROFISSIONAL(ÚLTIMA EMPRESA)
Empresa:
Início
Término
Função
ESCREVA ABAIXO SUA EXPERIÊNCIA PROFISSIONAL
Por favor, descreva abaixo, além de sua experiência, as suas perspectivas profissional
hvivox
Outubro 2, 2010, 11:41pm
#2
calma! calma! inspira e respira.
Seja bem vinda! Olha a primeira regra aqui no forum é que vc deve evitar não escrever o topico do post com letras maiusculas, pq assim como vc todos precisamos de respostas.
outra coisa especifique seu problema de maneira clara e objetiva e utilize a tag [code] [code] para coloca seu codigo e ficar mais fácil de entender
att.
Messana
Outubro 2, 2010, 11:43pm
#3
aa foi mal HEHE
mais ae sou homem HWAIUAHWUIAH
bruno messana …
maais ae você não sabe me ajudar preciso disso até 23:50 HWUAI
nesta linha esta faltando fechar “)”
alguns nomes de campos ñ coincidem, por exemplo txtend, txtemail, etc…
tem muitos repetidos com txtname.
Revise o nomes dos campos, eles precisam estar corretos.
Anime
Outubro 2, 2010, 11:59pm
#5
Olá Messana,
Vou ajuda-lo,por favor não leve a mal
<HTML>
<HEAD><TITLE></TITLE>
<script type="text/javascript">
function verifica( ){
var
n, e, em, i, t, b, ci, cep, est, se, est, ter, emp, ini, ini2, term, term2, func;
n=document.form1.txtname.value;
e=document.form1.txtend.value;
em=document.form1.txtemail.value;
i=document.form1.txtidade.value;
t=document.form1.txttel.value;
b=document.form1.txtbairro.value;
ci=document.form1.txtcidade.value;
cep=document.form1.txtcep.value;
est=document.form1.txtestado.value;
se=document.form1.rsexo.value;
es=document.form1.txtescola.value;
term=document.form1.txtterm.value;
term=document.form1.txtterm2.value;
emp=document.form1.txtemp.value;
ini=document.form1.txtini.value;
ini=document.form1.txtini2.value;
func=document.form1.txtfunc.value;
if(n.length==0){
alert("Preencha o campo nome");
document.form1.txtname.focus();
document.form1.txtname.style.background="yellow";
return false
}
if(e.length==0){
alert("Preencha o campo endereço");
document.form1.txtend.focus();
document.form1.txtend.style.background="yellow";
return false
}
if(em.indexof("@")<0){
alert("Preencha o campo email");
document.form1.txtemail.focus();
document.form1.txtemail.style.background="yellow";
return false
}
if(isNaN(i) ||i.length==0){
alert("Preencha o campo idade");
document.form1.txtidade.focus();
document.form1.txtidade.style.background="yellow";
return false
}
if(isNaN(t)||t.length==0){
alert("Preencha o campo telefone");
document.form1.txttel.focus();
document.form1.txttel.style.background="yellow";
return false
}
if(b.length==0){
alert("Preencha o campo bairro");
document.form1.txtbairro.focus();
document.form1.txtbairro.style.background="yellow";
return false
}
if(ci.length==0){
alert("Preencha o campo cidade");
document.form1.txtcidade.focus();
document.form1.txtcidade.style.background="yellow";
return false
}
if(isNaN(cep) ||cep.length==0){
alert("Preencha o campo cep");
document.form1.txtcep.focus();
document.form1.txtcep.style.background="yellow";
return false
}
if(est==" "){
alert("Escolha o Estado");
return false
}
if(document.form1.rsexo[0].checked==false && document.form1.rsexo[1].checked==false{
alert("Selecione o sexo");
return false;
}
if(es.length==0){
alert("Preencha o campo escola");
document.form1.txtescola.focus();
document.form1.txtescola.style.background="yellow";
return false
}
if(isNaN(ini)||ini.length==0){
alert("Preencha o campo início");
document.form1.txtini.focus();
document.form1.txtini.style.background="yellow";
return false
}
if(isNaN(ini2)||ini2.length==0){
alert("Preencha o campo início");
document.form1.txtini2.focus();
document.form1.txtini2.style.background="yellow";
return false
}
if(isNaN(term)||term.length==0){
alert("Preencha o campo término");
document.form1.txtterm.focus();
document.form1.txtterm.style.background="yellow";
return false
}
if(isNaN(term2)||term2.length==0){
alert("Preencha o campo término");
document.form1.txtterm2.focus();
document.form1.txtterm2.style.background="yellow";
return false
}
if(emp.length==0){
alert("Preencha o campo empresa");
document.form1.txtemp.focus();
document.form1.txtemp.style.background="yellow";
return false
}
if(func.length==0){
alert("Preencha o campo função");
document.form1.txtfunc.focus();
document.form1.txtfunc.style.background="yellow";
return false
}
}
</script>
</HEAD>
<BODY>
<FORM name="form1" method="post" action="grava.asp">
<CENTER><B>Cadastro de Curriculo</B></CENTER>
<BR>
<CENTER>DADOS PESSOAIS</CENTER>
<TABLE>
<TR>
<TD colspan="2">
Nome:
</TD>
<TD>
<INPUT type="text" name="txtname" size="60" maxlength="37">
</TD>
</TR>
<TR>
<TD colspan="2">
Endereço:
</TD>
<TD>
<INPUT type="text" name="txtname" size="60" maxlength="40">
</TD>
</TR>
<TR>
<TD colspan="2">
E-mail:
</TD>
<TD>
<INPUT type="text" name="txtname" size="60" maxlength="45">
</TD>
</TR>
<TR>
<TD colspan="2">
Idade:
</TD>
<TD>
<INPUT type="text" name="txtidade" size="30" maxlength="3">
</TD>
<TD>
Telefone:
</TD>
<TD>
<INPUT type="text" name="txttel" size="30" maxlenght="10">
</TD>
</TR>
<TR>
<TD colspan="2">
Bairro:
</TD>
<TD>
<INPUT type="text" name="txtbairro" size="30" maxlength="25">
</TD>
<TD>
Cidade
</TD>
<TD>
<INPUT type="text" name="txtcidade" size="30" maxlenght="40">
</TD>
</TR>
<TR>
<TD colspan="2">
CEP
</TD>
<TD>
<INPUT type="text" name="txtcep" size="30" maxlength="8">
</TD>
<TD>
Estado
</TD>
<TD>
<SELECT NAME="estado">
<OPTION VALUE="SP">SP
<OPTION VALUE="RJ">RJ
</SELECT>
</TD>
<TD>
Sexo
</TD>
<TD>
<INPUT type="radio" name="rsexo" value="M">M
</TD>
<TD>
<INPUT type="radio" name="rsexo" value="F">F
</TD>
</TR>
</TABLE>
<BR></BR>
<CENTER>ESCOLARIDADE</CENTER>
<TABLE>
<TR>
<TD COLSPAN="2">
Escola</TD>
<TD>
<INPUT type="text" name="txtescola" size="60" maxlenght="50">
</TD>
</TR>
<TR>
<TD COLSPAN="2">
Início</TD>
<TD>
<INPUT type="text" name="txtini" size="30" maxlenght="20">
</TD>
<TD>
Término
</TD>
<TD>
<INPUT type="text" name="txtterm" size="30" maxlenght="20">
</TD>
</TR>
</TABLE>
<BR><BR>
<CENTER>PREFERENCIA PROFISSIONAL(ÚLTIMA EMPRESA)</CENTER>
<TABLE>
<TR>
<TD COLSPAN="2">
Empresa:
</TD>
<TD>
<INPUT type="text" name="txtemp" size="60" maxlenght="20">
</TD>
</TR>
<TR>
<TD COLSPAN="2">
Início</TD>
<TD>
<INPUT type="text" name="txtini2" size="20" maxlenght="20">
</TD>
<TD>
Término
</TD>
<TD>
<INPUT type="text" name="txtterm2" size="20" maxlenght="20">
</TD>
<TD>
Função
</TD>
<TD>
<INPUT type="text" name="txtfunc" size="20" maxlenght="20">
</TD>
</TR>
</TABLE>
<BR><BR>
<CENTER>ESCREVA ABAIXO SUA EXPERIÊNCIA PROFISSIONAL</CENTER>
<TR>
<TD>
<TEXTAREA COLS="120" ROWS="7">
Por favor, descreva abaixo, além de sua experiência, as suas perspectivas profissional</TEXTAREA>
</TD>
<BR><BR>
<CENTER>
<INPUT type= "button" value= "Enviar Cadastro" onClick="verifica( )">
<INPUT type= "reset" value= "Limpar dados">
</FORM>
</BODY>
</HTML>
[quote=Messana]aa foi mal HEHE
mais ae sou homem HWAIUAHWUIAH
bruno messana …
maais ae você não sabe me ajudar preciso disso até 23:50 HWUAI :([/quote]
Huahauhuahauahuahua depois de toda a calma do hvivox… Jurando que ia ganhar crédito com a gatinha… heuehueheuheueheueheuheueu foi mal cara, não me leve a mal, mas que realmente já tava vendo a galera ajudando num tópico do pior tipo possível aqui no GUJ… Isso só acontece quando é com mulher… Com mulher que todo mundo pede calma, tenta entender… com o Homem é… “Google é seu amigo” e afins… Hauhauahauahua muito bom…
Só a Anime mesmo que é um anjo pra ajudar… huheuehueheuheueheueheuehueheueheueheuheueu
lokits5
Outubro 4, 2010, 11:26am
#7
kkkkkkkkkkk fora os FAKES !!!
hvivox
Outubro 12, 2010, 2:09pm
#8
caro Messana seu erro está aqui,
<CENTER>ESCREVA ABAIXO SUA EXPERIÊNCIA PROFISSIONAL</CENTER>
<TR>
<TD>
<TEXTAREA COLS="120" ROWS="7">
Por favor, descreva abaixo, além de sua experiência, as suas perspectivas profissional</TEXTAREA>
</TD>
<BR><BR>
att.
Luca
Outubro 12, 2010, 2:52pm
#9
Olá
Nos meus mais de 8 anos de GUJ considero este o tópico com o pior nome disparado.
E o cara é tão newbie que nem leu as regras do forum.
[]s
Luca