Re[2]: [Typo3-UG Oesterreich] Formular prüfen
Stefan Beylen
intsys at swissinfo.org
Wed Sep 15 12:59:14 CEST 2004
Hello Alexander,
Wednesday, September 15, 2004, 12:54:47 PM, you wrote:
AR> am einfachsten ein javascript einbinden:
AR> im Template im Setup:
AR> page.headerData.9 = TEMPLATE
AR> page.headerData.9 {
AR> template = FILE
AR> template.file = fileadmin/check.js
AR> }
AR> und das javascript schaut so aus:
AR> var tmp = document.forms.kontaktform.email.length;
AR> if((document.forms.kontaktform.email.value.indexOf("@") <
AR> 0)||(document.forms.kontaktform.email.value.indexOf(".") < 0)){
AR> alert("Bitte geben Sie Ihre korrekte E-Mailadresse an!");
AR> document.forms.kontaktform.email.focus();
AR> return false;
AR> }
naja, ganz so einfach isses nicht da die js-function nix nutzt wenn
sie nicht aufgerufen wird ;) das würd gehn mit <form onsubmit="validate();">
nur kannst du das onsubmit nicht mit der normalen formular-ext
definieren ;)
also: mailformplus installieren
http://typo3.org/documentation/document-library/th_mailformplus/
besonders interessant dürfte da folgendes sein
http://typo3.org/documentation/document-library/th_mailformplus/the_HTML_form/
good luck
--
Best regards, Steve
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Stefan Beylen
T / private: +43 (0)660 76 47 252
M / private: intsys at swissinfo.org
W / private: http://www.lingoist.com
ICQ private: 19461808
MSN private: iiioiooo
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
More information about the TYPO3-at
mailing list