Ver Mensaje Individual
  #50 (permalink)  
Antiguo 10/11/2008, 18:47
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 16 años, 7 meses
Puntos: 2
Respuesta: Envio de mensaje js al no haber stock disponible

Disculpa David por la ignorancia,
pero esto avanze:
function checked(valor1,valor2) {
var cantidad = document.formulario.cantidad_autorizada;
var stock = document.formulario.stock_disponible;
for(i=0;i<cantidad.length;i++){
if(cantidad[i].value>stock[i].value){
alert("stock insuficiente");
return false;
}
}
return true;
}
<form name="formulario" method="post" action="agregacarrito2.php?<?php echo SID ?>" id="a<?php echo $v['identificador'] ?>" onsubmit="return checked("this.cantidad_autorizada","this.stock_disponible ");">

Ten paciencia amigo, te prometo que ubicare un buen manual despues de esto...hasta ahora estoy trabajando con el de librosweb(punto)es

Gracias de nuevo amigo