Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/12/2011, 08:40
jeshua3001
 
Fecha de Ingreso: octubre-2006
Mensajes: 128
Antigüedad: 17 años, 6 meses
Puntos: 0
Respuesta: que otra variable se puede usar a diferente a OnBlur

esta es la funcion a validar
Código HTML:
Ver original
  1. <SCRIPT LANGUAGE=JavaScript>
  2. window.onload = function get_xmlhttp() {
  3.     try {
  4.       xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  5.      } catch (e) {
  6.       try {
  7.        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  8.       } catch (E) {
  9.        xmlhttp = false;
  10.       }
  11.      }
  12.     if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  13.       xmlhttp = new XMLHttpRequest();
  14.     }
  15.     return xmlhttp
  16. }
  17.  
  18.  window.onload = function probar_XMLHttpRequest(merchId,storeId,termId,currId) {
  19.     xmlhttp=get_xmlhttp()
  20.     var monto = document.getElementById("monto").value;
  21.     var order = document.getElementById("order").value;
  22.    
  23.     xmlhttp.open("GET", "&merchId="+merchId+"&storeId="+storeId,false);
  24.     xmlhttp.onreadystatechange = function() {
  25.        if (xmlhttp.readyState==4)
  26.            var serverResponse = xmlhttp.responseText;
  27.            document.getElementById("vdig").innerHTML=serverResponse;
  28.            document.getElementById("digest").value=serverResponse;
  29.         };
  30.     xmlhttp.send(null);
  31. }
  32.  

pero la funcion window.onload no me permite cargar las dos funciones que funcion se colocaria en ese caso o si se puede unir las dos funciones? quien me puede asesorar?