Project

General

Profile

Actions

Bug #16164

closed

Old Gremlin: Mail Form validation: solution of wrong Russian chars in JS pop-up

Added by Valery Romanchev almost 18 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
Start date:
2006-05-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

There is extension to correct this problem:
------------------------
Correct Form (onet_correctform):
When MAILFORM using with differ from English language (for example - Russian) there is problems occur connected with necessarily fields. When necessarily fields is not filled, JavaScript "formValidate" shows form labels after processing rawurlencode() function which distorting labels when they shows on alert-window in turn. This extention are using parallel array, where rawurlencode() is not in use, and labels outputs to validateForm JavaScript in clean sight. This extention actual for Typo3 3.7.0.
------------------------
But IMHO better to correct this problem in TYPO3 Core

Solution (thanks to Kit from forum www.typo3.biz)

Patch for t3lib/jsfunc.validateform.js

function validateForm(theFormname,theFieldlist,goodMess,badMess,emailMess) {
var formObject = document[theFormname];
// patch start
theFieldlist = decodeURI(theFieldlist);
// end
if (!formObj............

(issue imported from #M3527)


Files

jsfunc.validateform.zip (1.74 KB) jsfunc.validateform.zip Administrator Admin, 2006-08-06 08:40
patch3527.diff (379 Bytes) patch3527.diff Administrator Admin, 2007-02-15 16:37
tslib_content-validateForm.diff (1.35 KB) tslib_content-validateForm.diff Administrator Admin, 2007-04-20 13:48
bug3527.patch (462 Bytes) bug3527.patch Administrator Admin, 2009-03-27 15:16

Related issues 5 (0 open5 closed)

Related to TYPO3 Core - Bug #31336: mailform JS error caused by rawurlencode deleted from previous versionClosed2011-10-27

Actions
Has duplicate TYPO3 Core - Bug #18497: t3lib/jsfunc.validateform.js - HTML code and wrong umlauts in alert messageClosed2008-03-25

Actions
Has duplicate TYPO3 Core - Bug #17300: CE Mailform (FE) -> bad characters in JS alert (required fields)Closed2007-05-12

Actions
Has duplicate TYPO3 Core - Bug #16183: JavaScript-Validation at forms: german umlauts (UTF-8) are displayed wrongClosed2006-05-26

Actions
Has duplicate TYPO3 Core - Bug #20655: Mailform: Message in javascript-Alertbox corruptClosedChristian Kuhn2009-06-23

Actions
Actions

Also available in: Atom PDF