Ir para conteúdo

POWERED BY:

Arquivado

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

BrunoHP

Campo Obrigatório

Recommended Posts

Eu coloco a script direto no form mesmo assim ele não trava!!

 

<form action="gravaRegionais.asp" method="post" name="subcategoria" target="_top" id="subcategoria" onsubmit="WAValidateRQ(document.subcategoria.cat,'- Informe a Potência',document.subcategoria.titulo,0,false,'text');WAValidateRQ(document.subcategoria.titulo,'- Nome da Regional',document.templo.titulo,0,false,'text');WAAlertErrors('Campos com preenchimento obrigatório:','',true,false);return document.MM_returnValue">
							<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr onmouseover="this.style.backgroundColor='#e3ffb3';" onmouseout="this.style.backgroundColor='';" style="cursor:hand;">
	<td align="left" valign="middle" class="textoBoldPreto11">Potência:</td>
	<td align="left" valign="top"><span class="textoNormalAzulBold12">
	  <select name="cat" id="cat" class="textoNormalPreto11">
		<option value="0">selecione</option>
		<%  Set BRrsList1 = conn.execute("select codigo,titulo from potencia order by titulo asc")
				  if not(BRrsList1.eof) then
				  Do While BRrsList1.eof=false
			  %>
		<option value="<%=BRrsList1("codigo")%>" <%if BRrsList1("codigo")=BRcat then Response.Write "selected=""selected""" end if%> > <%=BRrsList1("titulo")%></option>
		<% BRrsList1.movenext
				  loop
				  Set BRrsList1 = nothing
				  end if
			  %>
	  </select>
	</span></td>
  </tr>
  <tr onmouseover="this.style.backgroundColor='#e3ffb3';" onmouseout="this.style.backgroundColor='';" style="cursor:hand;">
	<td width="20%" align="left" valign="middle" class="textoBoldPreto11">Nome da Regional:</td>
	<td width="80%" align="left" valign="top"><span id="sprytextfield1"><span id="sprytextfield4">
	  <input name="titulo" type="text" class="textoNormalPreto11" id="titulo" value="<%=BRtitulo%>" size="70" maxlength="100" onkeyup="this.value = this.value.toUpperCase()" />
	  <span class="textfieldRequiredMsg"><img src="img/obrigatorio.gif" width="16" height="15" /></span></span><span class="textfieldRequiredMsg"><img src="img/obrigatorio.gif" width="16" height="15" /></span></span></td>
  </tr>
  <tr onmouseover="this.style.backgroundColor='#e3ffb3';" onmouseout="this.style.backgroundColor='';" style="cursor:hand;">
	<td align="left" valign="middle" class="textoBoldPreto11">CIM:</td>
	<td align="left" valign="top"><span id="sprytextfield2"><span id="sprytextfield5">
	<input name="rcim" type="text" class="textoNormalPreto11" id="rcim" value="<%=BRrcim%>" size="9" maxlength="9" onblur="busca_cim(this);" />
	<span class="textfieldRequiredMsg"><img src="img/obrigatorio.gif" width="16" height="15" /></span><span class="textfieldInvalidFormatMsg"><img src="img/formato-invalido.gif" width="16" height="14" /></span></span><span class="textfieldRequiredMsg"><img src="img/obrigatorio.gif" width="16" height="15" /></span></span></td>
  </tr>
  <tr onmouseover="this.style.backgroundColor='#e3ffb3';" onmouseout="this.style.backgroundColor='';" style="cursor:hand;">
	<td align="left" valign="top" class="textoBoldPreto11">Nome do Secretário:</td>
	<td align="left" valign="top"><span id="sprytextfield3">
	  <input name="rcim1" type="text" class="capitalize" id="rcim1" value="<%=BRrnomesecretario%>" size="70" maxlength="100" readonly="readonly">
	  <span class="textfieldRequiredMsg"><img src="img/obrigatorio.gif" width="16" height="15" /></span></span></td>
  </tr>
  <tr>
	<td align="left" valign="top" class="textoBoldPreto11"> </td>
	<td align="left" valign="top"> </td>
  </tr>
  <tr>
	<td align="left" valign="top" class="textoBoldPreto11"> </td>
	<td align="left" valign="top"><input name="action" type="hidden" id="action" value="<%=BRaction%>" />
	  <input name="codigo" type="hidden" id="codigo" value="<%=BRcodigo%>" />
	  <input name="button" type="submit" class="bot100" id="button" value="<%if BRaction = "insert" then Response.Write "GRAVAR" else Response.Write "ALTERAR" end if%>" />	  </td>
  </tr>
</table>
</form>
<form method="post" action="busca_cim.asp" name="form2" id="form2" target="fram">
  <input type="hidden" name="campo1" id="campo1">
  <input type="hidden" name="nome" id="nome">
</form>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Tópico movido

 

Origem: Programação » Plataforma Java

Destino: Desenvolvimento » Javascript / DHTML

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.