Code:function CheckRCMail(FormName) { if (FormName.rcleiter_mail.checked) { if (FormName.rcleiter_mailad.value == "") { alert ("Sie haben vergessen die Mailadresse des RC-Leiters einzutragen!!"); return(1); } } FormName.submit(); }
Hey,
ich hab eine kleine Funktion geschrieben die mir checked ob ein Forumlar-Feld ausgefüllt ist wenn es versendet wird! Falls nicht soll eine Meldung ausgegeben werden und das submit soll nicht stattfinden! Irgendwie steht ich aber auf der Leitung, ich bekomms nicht hin das nach dem alert die Ausführung gestoppt wird!
Hier mal der JS-Code:
Kann mir bitte jemand helfen??Code:function CheckRCMail(FormName) { if (FormName.rcleiter_mail.checked) { if (FormName.rcleiter_mailad.value == "") { alert ("Sie haben vergessen die Mailadresse des RC-Leiters einzutragen!!"); } } FormName.submit(); }
lg
Flow
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Code:function CheckRCMail(FormName) { if (FormName.rcleiter_mail.checked) { if (FormName.rcleiter_mailad.value == "") { alert ("Sie haben vergessen die Mailadresse des RC-Leiters einzutragen!!"); return(1); } } FormName.submit(); }
Gruß, der Michl
* * * if you want them to RTFM, make a better FM! * * *
War ja klar da es sowas simples ist, woran es scheitert![]()
! Funktioniert!!!
Danke Dir!
lg
Flow
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)