Jump to content


Yuri FIRST

Member Since 12/07/2007
Offline Last Active 02/08/2007, 17:06
-----

Posts I've Made

In Topic: <script Language="javascript">?

17/07/2007, 17:00

ok corrigi isso, eu nem me toquei, obrigado einh so outra coisa, o script em si nao esa funcionando, eu aperto o tab depois que seleciono o campo referencia e ele nao da o alert. tu poderia me dizer o por que? sou bem newbie nisso logo estou tendo dificuldades que sao dificeis de serem achadas em tutos e etc valeu.

sera que eh realmente este onblur que devo colocar no form.

SERA QUE É O ONBLUR QUE FAZ ISSO? LA NO FOR POIS QUANDO MUDO DE UM FORM PARA O OUTRO ELE NAO DA O ALERT OLHEM COMO ESTA O CODIGO.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>CADASTRO</title>

<meta http-equiv="content-type" content="text/html;charset=utf-8">


<style type="text/css" media="screen"><!--

#header
{
background-color: #000000;
text-align: center;
visibility: visible;
position: relative;
height: 120px;
margin-bottom: 5px;
}

#navbar
{
background-color: #10503f;
text-align: center;
color: white;
font-size: 11px;
line-height: 15px;
letter-spacing: 6px;
margin-bottom: 5px;
height: 20px
display: list-item;
}

#midsection
{
background-color: transparente;
color: #000000;
font-size: small;
font-family: Verdana, Geneva, Arial, sans-serif, Georgia;
line-height: 140%;
position: relative;
margin-top: 30px;
margin-right: 15px;
margin-left:30px:
float: center;

}
#bottom
{
aling:center;
margin-top:12px;
}


a
{
display:marked;
color: white;
text-decoration: none
}

a:hover {

font-size:13;

color: #1caf6d;
text-decoration:none

}

</style>
</head>


<body>


<div id="header">
<img style="width: 947px; height: 120px;" src="/C:\Documents and Settings\yuri.BRASILECODIESEL\Desktop\MATERIAL\CD_ECODIESEL.jpg" align="middle" border="0"> </div>


<div id="navbar"> <a href="/index.html">PRICIPAL</a>
| <a href="/cadastro.html">CADATRO</a> | <a href="/pesquisa.html">PESQUISA</a>
| <a href="/relatorio.html">RELATORIO</a> |<a href="/enviar.html">ENVIAR</a></div>




<p style="text-align: center;"><strong>CADASTRO</strong></p>

<br>

<div id="midsection">
<form action="/resultado.asp" method="post" name="form1">
Referencia: <input type="text" name="referencia" size="12" maxlength="12" onblur=valiref()>
Descricao: <input type="text" name="descricao" maxlength="22">
Local: <select name="origem">
<option value=""> -- selecione -- </option>
<option value="CE"> Fortaleza </option>
<option value="CRT"> Crateus </option>
<option value="PI"> Floriano </option>
<option value="BH"> Iraquara </option>
<option value="TO"> Porto Nacional </option>
<option value="RS"> Rosario do Sul </option>
<option value="MA"> Itaqui </option>
<option value="RS2"> Sao Luiz Gonsaga </option>
</select>

OUTROS: <input type="text" name="outrosorigem" size="8" maxlength="8"> <br><br>
Quantidade: <input type=“text" name="quantidade" size="3" maxlength="3">
Nota Fiscal: <input type=“text" name="nf" size="8" maxlength="8">
Fornecedor: <input type=“text" name="fornc" size="8" maxlength="8">
Data: <input name="dia" type="text" size="2" maxlength="2">/
<input name="mes" type="text" size="2" maxlength="2">/
<input name="ano" type="text" size="4" maxlength="4">
<br> <br>
Observacao: <input type=“text" name="obs" size="16" maxlength="20">
<br>
<br>
<input type="submit" value=Cadastrar onclick=valiref()>
<input type="reset" value="Limpar"> <br>

</form>

</div>

<br><br><br><br><br>

<script Language="JavaScript">
/*

function valiref() {
// verifica se a referencia está em branco
valiref=document.form1.referencia.value
if(valiref == "") { alert("Digite a Refernecia")
return false

}
}
*/

</script>



</body>
</html>

IPB Skin By Virteq