Forums de discussion
Javascript Translation problem
Corné A, modifié il y a 14 années.
Javascript Translation problem
Liferay Legend Publications: 1313 Date d'inscription: 03/10/06 Publications récentes
Some of my javascript 'delete confirmation dialogs' do not work because of my translation
in IE 8 any mode even IE 7
Whenever I remove a certain number of the uu-encodings or replace this with ascii with the 'developer toolbar' it works again.
I can not put my finger on it. because sometimes i remove the last 10 and it works and then i have to remove the last 15 to get it working again?
Anyone a clue?
BTW decoding it back gives me the exact phrase form .native
UPDATE
even stranger ! just running this script from the script box will give NO error !!
Just couldn't stand it so I debugged and debugged;
FINDINGS
The javascript is too long
Where ever i shorten the javascript code to a length of 2083 chars it will work ;
1 char more and its broken.
REPRODUCE
CONTROL PANEL >> ORGANIZATIONS >> Next (page once) >> Action >> Edit
"Custom Attributes" >> add Custom Attributes
Actions >> Remove (no way jose)
See the atached file
in IE 8 any mode even IE 7
<a href="javascript: if (confirm('\u0057\u0065\u0065\u0074\u0020\u0075\u0020\u007a\u0065\u006b\u0065\u0072\u0020\u0064\u0061\u0074\u0020\u0075\u0020\u0064\u0069\u0074\u0020\u0077\u0069\u006c\u0020\u0076\u0065\u0072\u0077\u0069\u006a\u0064\u0065\u0072\u0065\u006e\u003f')) {
SUBMIT-FORM-CODE-REMOVED-FOR-READABILITY
} else {
self.focus();
}"></a>
are-you-sure-you-want-to-delete-this=Weet u zeker dat u dit wil verwijderen?
Whenever I remove a certain number of the uu-encodings or replace this with ascii with the 'developer toolbar' it works again.
I can not put my finger on it. because sometimes i remove the last 10 and it works and then i have to remove the last 15 to get it working again?
Anyone a clue?
BTW decoding it back gives me the exact phrase form .native
UPDATE
even stranger ! just running this script from the script box will give NO error !!
Just couldn't stand it so I debugged and debugged;
FINDINGS
The javascript is too long
Where ever i shorten the javascript code to a length of 2083 chars it will work ;
1 char more and its broken.
REPRODUCE
CONTROL PANEL >> ORGANIZATIONS >> Next (page once) >> Action >> Edit
"Custom Attributes" >> add Custom Attributes
Actions >> Remove (no way jose)
See the atached file
Pièces jointes:
Corné A, modifié il y a 14 années.