Ver Mensaje Individual
  #4 (permalink)  
Antiguo 26/05/2013, 17:15
marisanjr
 
Fecha de Ingreso: abril-2013
Mensajes: 53
Antigüedad: 11 años, 1 mes
Puntos: 0
Respuesta: Como envio dos variables por load Jquery

Hola. Lo solucione con un script que encontre, el cual lo adapte. Aqui lo dejo de pronto les puede servir.

Código HTML:
           $(document).ready(function(){
             $('#nident').change(function(){
                llamarAjaxGETndocu();
            });
   });
        </script> 
Código HTML:
function llamarAjaxGETndocu(){
var id1=document.form1.nompuesto.value;
valor=document.getElementById("nident").value;
var url="vcedulapuesto1.php?valor="+valor+"&id1="+id1;
peticion.open("GET",url,true);
peticion.onreadystatechange =respuestaAjaxndocu;
peticion.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
peticion.send(null);
}

Código HTML:
function respuestaAjaxndocu(){

	if(peticion.readyState==4){
		if(peticion.status==200){
		//alert(peticion.responseText);
		document.getElementById("ndocu").innerHTML=peticion.responseText;
		}else{
		alert("ha ocurrido un error"+peticion.statusText);
		}
	}
}