Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
pfarley  
#1 Posted : Monday, November 10, 2008 11:45:14 PM(UTC)
pfarley

Rank: Newbie

Groups: Member
Joined: 11/10/2008(UTC)
Posts: 1

We're localizing the image uploader.

We've specified MessageSwitchAnotherFolderWarningText (which needs to be multiple lines) as a string with "\n" (backslash, 'n') in it for newlines. That works for the ActiveX version of the control, but the Java version (seen on Mac OS X with Firefox 2 and 3) is showing the entire message on one line, with the window sticking off the sides of the screen.

The example (seen here in help) shows the string literally split into multiple lines, but that's not valid JavaScript and causes errors in Firefox.

Here's our java version.

Code:
$ java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

Thanks.

Edited by user Wednesday, November 12, 2008 3:49:03 PM(UTC)  | Reason: Not specified

Dmitry  
#2 Posted : Wednesday, November 12, 2008 3:47:23 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

Image Uploader Java supports html tags in text fields. So you can use the following setting for Java version:

Code:

iu.addParam("MessageSwitchAnotherFolderWarningText", "<html>The first line<br>The second line</html>");
Sincerely yours,

Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.