Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/06/2011, 00:13
bendark23
 
Fecha de Ingreso: julio-2005
Mensajes: 73
Antigüedad: 18 años, 9 meses
Puntos: 0
Respuesta: cannot read property 'value' of Undefined

Cita:
Iniciado por Naahuel Ver Mensaje
Ese código me funciona bien en Chrome e IE. ¿Estás seguro que ahí está el problema?
Mirá, puse acá tu código y como verás si funciona
http://jsbin.com/usozoy/2/
ya lo revise y en efecto si lo toma bien.. entonces en que estare fallando io lo paso no asi como lo tienes tu, si no que lo paso a un archivo js


Código:
<script type="text/javascript" src="ajax.js"></script>

y ese archivo esta compuesto asi

ajax.js

Código:
function objetoAjax(){
	var xmlhttp=false;
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
			xmlhttp = false;
  		}
	}

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}

//envia los datos para guardar la direccion de contacto
function newsletter(){
  var aDominios= [".com",".net",".org",".edu",".gov",".gob",".es",".mx",".uy",".ar",".cl",".ve",".info",".biz"];
  var bDominio = false;
  var bEmail=true;
  form=document.registro;
  email=document.registro.email.value;
  alert(email);
 }