Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/03/2011, 19:20
warbandit69
 
Fecha de Ingreso: diciembre-2008
Ubicación: http://www.solucionesrios.tk/
Mensajes: 413
Antigüedad: 15 años, 5 meses
Puntos: 19
Respuesta: Problemas con validacion de formulario php / javascript

Esta es la funcion de javascript que "Deberia" validar los select

Código:
function madeSelection(titulo, elem, helperMsg, stringseleccionado){
	if(elem.value == stringseleccionado){
		Ext.MessageBox.alert(titulo, helperMsg, function() {
        Ext.get(elem).focus();
    });
		return false;
	}else{
		return true;
	}
}
y aqui en esta la estoy llamando con unos valores dinamicos y no hace caso:(

Código:
function chequeo_boxes() {
	
	if (document.form1.tipo.checked) {
			
		var cedu = document.getElementById('documento');
		var nomt = document.getElementById('nombrecuenta');
		var banc = document.getElementById('idbanco');
		var tipo1 = document.getElementById('tipocuenta');
		var numc = document.getElementById('nocuenta');
		
		
		if(notEmpty("<?php echo $v_linea24; ?>",cedu,"<?php echo $v_linea25; ?>")) {
		if(notEmpty("<?php echo $v_linea34; ?>",nomt,"<?php echo $v_linea35; ?>")) {
		if(madeSelection("<?php echo $v_linea27; ?>", banc, "<?php echo $v_linea26; ?>", "<?php echo $linea21; ?>")) {
		if(madeSelection("<?php echo $v_linea27; ?>", tipo1, "<?php echo $v_linea28; ?>", "<?php echo $linea21; ?>")) {
		if(notEmpty("<?php echo $v_linea29; ?>",numc,"<?php echo $v_linea30; ?>")) {
		if(isNumeric("<?php echo $v_linea31; ?>", numc, "<?php echo $v_linea32; ?>")) {
		if(lengthRestriction_specific("<?php echo $v_linea31; ?>", numc, 20, "<?php echo $v_linea33; ?>")) {
					
		return true;
		
		}
		}
		}
		}
		}
		}
		}
		
		return false;
		
	} else {
		return true;
	}
}
__________________
http://www.solucionesrios.tk/

Visita mi Web!