Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help !!!

Status
Not open for further replies.

castella

Technical User
Joined
Apr 7, 2006
Messages
3
Location
GB
I have this code and with Netscape dont work?
What can I do?
<script language=&quot;Javascript&quot;>
function validar()
{
var Numero = document.Form_Inf.CNumero.value;
var Site = document.Form_Inf.CSite.value;
var Depto = document.Form_Inf.Depto.value;
var Turno = document.Form_Inf.Turno.value;
var Puesto = document.Form_Inf.CPuesto.value;
if (document.Form_Inf.Temporal.checked == true)
var resultado = Numero && Site && Depto && Turno && Puesto;
else
var resultado = Numero && Site && Depto && Turno && Puesto;

if (resultado == false)
{
alert(&quot;Favor de verificar que los campos indicados esten totalmente llenos&quot;);
return false;
}
return true;
}
</script>
 
What exactly does not work - try and track down the exact problem.

<bb/>
 
if (document.Form_Inf.Temporal.checked == true)
var resultado = Numero && Site && Depto && Turno && Puesto;

else
var resultado = Numero && Site && Depto && Turno && Puesto;

Ambos de falso y verdad tienen el mismo resulto para &quot;resultado&quot;. Que quieres hacer diferente para un falso que un verdad con document.Form_Inf.Temporal.checked?
 
Castella's code indicates a Spanish-speaking programmer, so I replied in a HUMAN language other than English. Some of us are multi-lingual in human languages as well as computer languages. :)# (bearded smiley face)
 
i figured that. i was just wondering what was said. perhaps your answer could have helped others of us who don't speak spanish. [sadeyes]
 
I asked why both true and false answers for document.Form_Inf.Temporal.checked put the same results in the variable resultado.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top