Les dejo el codigo (y sepan perdonar mi ignorancia)...
Código :
function validate(address) { if (address.length >= 7) { if (address.indexOf("@") > 0) { if (address.indexOf("@") + 2 < address.lastIndexOf(".")) { if (address.lastIndexOf(".") < address.length - 2) { return(true); } // end if } // end if } // end if } // end if return(false); } // End of the function function formcheck() { if (email == null || email.length<1 || email == "Por Favor, ingrese su dirección de mail") { email = "Por Favor, ingrese su dirección de mail"; action = ""; } // end if if (!validate(email)) { email = "Por Favor, ingrese su dirección de mail"; action = ""; } // end if if (name == null) { name = "Por Favor, ingrese su Nombre"; action = ""; } // end if if (empresa == null) { empresa = "Por Favor, ingrese su Empresa"; action = ""; } // end if if (validate(email) && email != "ERROR!" && empresa != "" && name != "") { action = "send"; loadVariablesNum(mailform, 0, "POST"); gotoAndPlay(23); } // end if } // End of the function fscommand("allowscale", "false"); mailform = "mailform.php"; confirm = "Muchas Gracias Por contactnos, A la brevdedad le responderemos..."; action = "send"; Selection.setFocus("name");
Los elementos de los que toma datos son "Introducción de texto"... perdon por la ignorancia, nuevamente, pero siempre que quise tomar datos he usado textinput, por lo que no comprendo como es que hace para tomar texto de estos elementos...
Mi problema, es que tengo que entender como toma datos de estos elementos que no estan instanciados, para, luego, tomar de algunos campos que faltan...
No se si me haya explicado bien, espero que puedan entender mi consulta.
Desde ya muchas gracias!
Pablo