[AJUDA JAVASCRIPT] URGENTEEEEEEE! PRECISO DISSO MENOS DE 40MIN JAV [expirado]
8 respostas
Messana
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
Escola
Início
Término
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
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
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
robsonsm
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
Olá Messana,
Vou ajuda-lo,por favor não leve a mal
<HTML><HEAD><TITLE></TITLE><scripttype="text/javascript">functionverifica(){varn,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";returnfalse}if(e.length==0){alert("Preencha o campo endereço");document.form1.txtend.focus();document.form1.txtend.style.background="yellow";returnfalse}if(em.indexof("@")<0){alert("Preencha o campo email");document.form1.txtemail.focus();document.form1.txtemail.style.background="yellow";returnfalse}if(isNaN(i)||i.length==0){alert("Preencha o campo idade");document.form1.txtidade.focus();document.form1.txtidade.style.background="yellow";returnfalse}if(isNaN(t)||t.length==0){alert("Preencha o campo telefone");document.form1.txttel.focus();document.form1.txttel.style.background="yellow";returnfalse}if(b.length==0){alert("Preencha o campo bairro");document.form1.txtbairro.focus();document.form1.txtbairro.style.background="yellow";returnfalse}if(ci.length==0){alert("Preencha o campo cidade");document.form1.txtcidade.focus();document.form1.txtcidade.style.background="yellow";returnfalse}if(isNaN(cep)||cep.length==0){alert("Preencha o campo cep");document.form1.txtcep.focus();document.form1.txtcep.style.background="yellow";returnfalse}if(est==" "){alert("Escolha o Estado");returnfalse}if(document.form1.rsexo[0].checked==false&&document.form1.rsexo[1].checked==false{alert("Selecione o sexo");returnfalse;}if(es.length==0){alert("Preencha o campo escola");document.form1.txtescola.focus();document.form1.txtescola.style.background="yellow";returnfalse}if(isNaN(ini)||ini.length==0){alert("Preencha o campo início");document.form1.txtini.focus();document.form1.txtini.style.background="yellow";returnfalse}if(isNaN(ini2)||ini2.length==0){alert("Preencha o campo início");document.form1.txtini2.focus();document.form1.txtini2.style.background="yellow";returnfalse}if(isNaN(term)||term.length==0){alert("Preencha o campo término");document.form1.txtterm.focus();document.form1.txtterm.style.background="yellow";returnfalse}if(isNaN(term2)||term2.length==0){alert("Preencha o campo término");document.form1.txtterm2.focus();document.form1.txtterm2.style.background="yellow";returnfalse}if(emp.length==0){alert("Preencha o campo empresa");document.form1.txtemp.focus();document.form1.txtemp.style.background="yellow";returnfalse}if(func.length==0){alert("Preencha o campo função");document.form1.txtfunc.focus();document.form1.txtfunc.style.background="yellow";returnfalse}}</script></HEAD><BODY><FORMname="form1"method="post"action="grava.asp"><CENTER><B>CadastrodeCurriculo</B></CENTER><BR><CENTER>DADOSPESSOAIS</CENTER><TABLE><TR><TDcolspan="2">Nome:</TD><TD><INPUTtype="text"name="txtname"size="60"maxlength="37"></TD></TR><TR><TDcolspan="2">Endereço:</TD><TD><INPUTtype="text"name="txtname"size="60"maxlength="40"></TD></TR><TR><TDcolspan="2">E-mail:</TD><TD><INPUTtype="text"name="txtname"size="60"maxlength="45"></TD></TR><TR><TDcolspan="2">Idade:</TD><TD><INPUTtype="text"name="txtidade"size="30"maxlength="3"></TD><TD>Telefone:</TD><TD><INPUTtype="text"name="txttel"size="30"maxlenght="10"></TD></TR><TR><TDcolspan="2">Bairro:</TD><TD><INPUTtype="text"name="txtbairro"size="30"maxlength="25"></TD><TD>Cidade</TD><TD><INPUTtype="text"name="txtcidade"size="30"maxlenght="40"></TD></TR><TR><TDcolspan="2">CEP</TD><TD><INPUTtype="text"name="txtcep"size="30"maxlength="8"></TD><TD>Estado</TD><TD><SELECTNAME="estado"><OPTIONVALUE="SP">SP<OPTIONVALUE="RJ">RJ</SELECT></TD><TD>Sexo</TD><TD><INPUTtype="radio"name="rsexo"value="M">M</TD><TD><INPUTtype="radio"name="rsexo"value="F">F</TD></TR></TABLE><BR></BR><CENTER>ESCOLARIDADE</CENTER><TABLE><TR><TDCOLSPAN="2">Escola</TD><TD><INPUTtype="text"name="txtescola"size="60"maxlenght="50"></TD></TR><TR><TDCOLSPAN="2">Início</TD><TD><INPUTtype="text"name="txtini"size="30"maxlenght="20"></TD><TD>Término</TD><TD><INPUTtype="text"name="txtterm"size="30"maxlenght="20"></TD></TR></TABLE><BR><BR><CENTER>PREFERENCIAPROFISSIONAL(ÚLTIMAEMPRESA)</CENTER><TABLE><TR><TDCOLSPAN="2">Empresa:</TD><TD><INPUTtype="text"name="txtemp"size="60"maxlenght="20"></TD></TR><TR><TDCOLSPAN="2">Início</TD><TD><INPUTtype="text"name="txtini2"size="20"maxlenght="20"></TD><TD>Término</TD><TD><INPUTtype="text"name="txtterm2"size="20"maxlenght="20"></TD><TD>Função</TD><TD><INPUTtype="text"name="txtfunc"size="20"maxlenght="20"></TD></TR></TABLE><BR><BR><CENTER>ESCREVAABAIXOSUAEXPERIÊNCIAPROFISSIONAL</CENTER><TR><TD><TEXTAREACOLS="120"ROWS="7">Porfavor,descrevaabaixo,alémdesuaexperiência,assuasperspectivasprofissional</TEXTAREA></TD><BR><BR><CENTER><INPUTtype="button"value="Enviar Cadastro"onClick="verifica( )"><INPUTtype="reset"value="Limpar dados"></FORM></BODY></HTML>
adriano_si
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 :(
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