Ver Mensaje Individual
  #4 (permalink)  
Antiguo 10/12/2009, 13:24
Avatar de jackson666
jackson666
 
Fecha de Ingreso: noviembre-2009
Ubicación: Buenos Aires, Argentina
Mensajes: 1.971
Antigüedad: 14 años, 6 meses
Puntos: 65
Respuesta: Ayuda con cun form

Cita:
Iniciado por rastafinis Ver Mensaje
descuida con el teclado escribo por escribir me lo han dicho muchas veces si es cierto para mi trabajo tengo mas cuidado.

pero ya lo mande ahi man y nadie dice nada ni se inmutan U_U
Y bue.... somos nos tomamos tranka el laburo che... tampoco vamos a ir a las corridas (?)

Código HTML:
<script language='javascript'>
var xhr;
function startAjax(){
    if(window.XMLHttpRequest){
        xhr=new XMLHttpRequest();
    }else if(window.ActiveXobject){
        xhr=new ActiveXObject("Microsoft.XMLHTTP");
    }
    
var v1=document.getElementById("idDeTuInputAChequear").value;
var v2=document.getElementById("idDeTuInputAChequear").value;
var v3=document.getElementById("idDeTuInputAChequear").value;

xhr.open("GET","check.php?v1="+v1+"&v2="+v2+"&v3="+v3);
xhr.onreadystatechange=function(){
                        	if(xhr.readyState==4){
	                           if(xhr.status==200){
	                               if(xhr.responseText=="el echo del php"){
                                            /* lanzas la funcion de imprimir javascript 
                                                 que calculo q se llama print() =P */
                                      }else{
                                              //avisas que los datos estan mal
                                        }
                                   }
                              }
                         }
xhr.send(null);
}
</script> 
NOTA: en tu boton que hace submit al form ponele onclick="startAjax()"

NOTA2: te dejo de regalo la funcion imprimir en js y la del chequeo en php =)

NOTA3: en el php haces $_GET['v1'], idem con las demas