Probmlem gelöst!!
Hallo Zusammen
von webcreate verwende ich dieses Flash-Teil: link
Nun würde ich gerne das Email auf @ und . direkt mit AS checken lassen. Leider funzt das nicht. Wo mache ich den Fehler?
Mein Code (Betrifft tf:mail):
Herzlichen Dank für euer Feedback...Gruss..tomCode:bt_insert.onRelease = function() { if (tf_vorname.text != "" && tf_nachname.text != "" && tf_mail.text != "" && tf_adresse.text != "" && tf_plz.text != "" && tf_ort.text != ""&& tf_telefon.text != "") { if (tf_mail.indexOf("#") != -1 && tf_mail.indexOf(".") != -1) //{tf_status = "gebe richtige mail an"}; senden = new LoadVars(); senden.gender = (tf_frau.selected) ? "Frau" : "Herr"; senden.gender = (tf_herr.selected) ? "Herr" : "Frau"; senden.prename = tf_vorname.text; senden.name = tf_nachname.text; senden.email = tf_mail.text; senden.address = tf_adresse.text; senden.zip = tf_plz.text; senden.city = tf_ort.text; senden.phone = tf_telefon.text; empfang = new LoadVars(); rand = new Date().getTime(); senden.sendAndLoad("register.php", empfang, "POST"); empfang.onLoad = function(status) { if (status) { tf_vornname.borderColor = tf_nachname.borderColor=tf_mail.borderColor=tf_adresse.borderColor=tf_plz.borderColor=tf_ort.borderColor=tf_telefon.borderColor=0x000000; tf_status = this.tf_status; if (empfang.signal == 2) { tf_regname.text = ""; tf_regname.borderColor = 0xFF0000; } if (empfang.signal == 3) { tf_vorname.text = tf_nachname.text=tf_mail.text=tf_adresse.text=tf_plz.text=tf_ort.text=tf_telefon.text==""; } } _root.formular.gotoAndPlay(21); }; } else { tf_status = "Bitte füllen Sie jedes Feld aus."; if (tf_vornname.text == "") { tf_vornname.borderColor = 0xFF0000; } else { tf_vorname.borderColor = 0x000000; } if (tf_nachname.text == "") { tf_nachname.borderColor = 0xFF0000; } else { tf_nachname.borderColor = 0x000000; } if (tf_mail.text == "") { tf_mail.borderColor = 0xFF0000; } else { tf_mail.borderColor = 0x000000; } if (tf_adresse.text == "") { tf_adresse.borderColor = 0xFF0000; } else { tf_adresse.borderColor = 0x000000; } if (tf_plz.text == "") { tf_plz.borderColor = 0xFF0000; } else { tf_plz.borderColor = 0x000000; } if (tf_ort.text == "") { tf_ort.borderColor = 0xFF0000; } else { tf_ort.borderColor = 0x000000; } if (tf_telefon.text == "") { tf_telefon.borderColor = 0xFF0000; } else { tf_telefon.borderColor = 0x000000; } } };
Geändert von Tom (17.09.2009 um 19:03 Uhr)
Im Nichtstun bleibt nichts ungetan - Laotse
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)