| baseportal | |||
| English - Deutsch | "Es gibt keine dummen Fragen - jeder hat einmal angefangen" | ||
|
| Ausgewählter Eintrag: | Zur Liste |
<script type="text/javascript">
function countLines(theArea){
var theLines = theArea.value.replace((new RegExp(".{"+theArea.cols+"}","g")),"\n").split("\n");
if(theLines[theLines.length-1]=="") theLines.length--;
theArea.form.lineCount.value = theLines.length;
theArea.form.replace(/\r|\n/g, "");
}
</script>
</head>
<!-- wird unterhalb Form eingetragen -->
<script>
$('#scancodes').keyup(validateTextarea);
function validateTextarea() {
var errorMsg = "Ein oder mehrere Scancodes stimmen nicht mit der Spedition ueberein!!!";
var textarea = this;
var pattern = new RegExp('^' + $(textarea).attr('pattern') + '$');
// check each line of text
$.each($(this).val().split("\n"), function () {
// check if the line matches the pattern
var hasError = !this.match(pattern);
if (typeof textarea.setCustomValidity === 'function') {
textarea.setCustomValidity(hasError ? errorMsg : '');
} else {
// Not supported by the browser, fallback to manual error display...
$(textarea).toggleClass('error', !!hasError);
$(textarea).toggleClass('ok', !hasError);
if (hasError) {
$(textarea).attr('title', errorMsg);
} else {
$(textarea).removeAttr('title');
}
}
return !hasError;
});
}
</script>
| Alle Einträge zum Thema: | Zur Liste |
<form> <textarea pattern="(20006273.+|.+20006273.+|.+20006273)" class="form-control" cols="70" onKeyUp="countLines(this)" name="Scancode=" rows="7" tabindex="1" required="required" id="scancodes"></textarea> <button class="btn btn-primary btn-lg btn-block" name="submit" type="submit"> </form>
<script type="text/javascript">
function countLines(theArea){
var theLines = theArea.value.replace((new RegExp(".{"+theArea.cols+"}","g")),"\n").split("\n");
if(theLines[theLines.length-1]=="") theLines.length--;
theArea.form.lineCount.value = theLines.length;
theArea.form.replace(/\r|\n/g, "");
}
</script>
</head>
<!-- wird unterhalb Form eingetragen -->
<script>
$('#scancodes').keyup(validateTextarea);
function validateTextarea() {
var errorMsg = "Ein oder mehrere Scancodes stimmen nicht mit der Spedition ueberein!!!";
var textarea = this;
var pattern = new RegExp('^' + $(textarea).attr('pattern') + '$');
// check each line of text
$.each($(this).val().split("\n"), function () {
// check if the line matches the pattern
var hasError = !this.match(pattern);
if (typeof textarea.setCustomValidity === 'function') {
textarea.setCustomValidity(hasError ? errorMsg : '');
} else {
// Not supported by the browser, fallback to manual error display...
$(textarea).toggleClass('error', !!hasError);
$(textarea).toggleClass('ok', !hasError);
if (hasError) {
$(textarea).attr('title', errorMsg);
} else {
$(textarea).removeAttr('title');
}
}
return !hasError;
});
}
</script>
| Liste der Einträge von 900 bis 1050: | Einklappen | Zur Eingabe |
| Neueste Einträge << 5 | 4 | 3 | 2 | Neuere Einträge < | Zur Eingabe | > Ältere Einträge | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 >> Älteste Einträge |
| © baseportal.de. Alle Rechte vorbehalten. Nutzungsbedingungen |