Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Corné Aussems
Javascript Translation problem
February 11, 2010 2:01 PM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1311

Join Date: October 3, 2006

Recent Posts

Some of my javascript 'delete confirmation dialogs' do not work because of my translation
in IE 8 any mode even IE 7

1<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')) {
2SUBMIT-FORM-CODE-REMOVED-FOR-READABILITY
3} else {
4self.focus();
5}">



1
2are-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
Attachments: test.htm (16.9k)
Corné Aussems
RE: Javascript Translation problem
February 11, 2010 1:51 PM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1311

Join Date: October 3, 2006

Recent Posts

put in LPS-7769