Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/07/2008, 12:57
*an*
 
Fecha de Ingreso: junio-2007
Mensajes: 9
Antigüedad: 16 años, 10 meses
Puntos: 0
Pregunta Ayuda con verificacion de mail en action

Hola!

Estoy haciendo un formulario en flash y necesito que me verifique que la direccion de mail sea valida, o sea que tenga el @ y el punto (.)

El formulario tiene un campo donde va apareciendo si no se agrego algun dato.

Aca paso el codigo que le meti al boton de enviar y necesitaria que alguien me ayude porque resulta que me hace la verificacion pero no se donde poner para que aparezca en el campo que nombre antes cuando la direccion de mail ingresada es invalida, o sea, cuando le falta el @ o el punto (.).

ALGUIEN ME AYUDARIA?? ESTOY SEGURA QUE ES UNA BOBADA PERO NO PUEDO HACERLO!!!

GRACIAS!!!!



on (release) {
sender_nombre = nombre.text;
sender_email = email.text;
sender_legajo = legajo.text;
sender_texto = texto.text;
sender_destino = destino.text;
trace(nombre.text);
if (signa != 2 && email.text.indexOf("@") != -1 && email.text.indexOf(".") != -1 && nombre.text != "" && legajo.text != "" && destino.text != "" && texto.text != "") {
nombre.text = "";
email.text = "";
legajo.text = "";
destino.text = "";
texto.text = "";
mc._visible = false;
loadVariables("http://www.lasjulitas.com.ar/sendmail.php", this, "POST");
this.onData = function() {
for (var a in this) {
trace([a, this[a]]);
}

this.nextFrame();
if (this.output == "sent") {
_root.errTitle = "Muchas Gracias.";
_root.errType = "Su mensage ha sido enviado.";
} else {
_root.errTitle = "Ocurrio un error!";
_root.errType = "Atención, un error a ocurrido al procesar su mensage. Por favor intentelo de nuevo más tarde.";
}

};
}



if (texto.text == "") {
mc.txt_error.txterror = "POR FAVOR INGRESE SU COMENTARIO";
mc.gotoAndPlay("hayerror");
}


if (destino.text == "") {
mc.txt_error.txterror = "POR FAVOR INGRESE DESTINO";
mc.gotoAndPlay("hayerror");
}
if (legajo.text == "") {
mc.txt_error.txterror = "POR FAVOR INGRESE SU LEGAJO";
mc.gotoAndPlay("hayerror");
}

if (email.text == "") {
mc.txt_error.txterror = "POR FAVOR INGRESE SU MAIL DE CONTACTO";
mc.gotoAndPlay("hayerror");
}

if (nombre.text == "") {
mc.txt_error.txterror = "POR FAVOR INGRESE SU NOMBRE";
mc.gotoAndPlay("hayerror");
}

}