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

Notification

Icon
Error

Options
Go to last post Go to first unread
hyperlinked  
#1 Posted : Saturday, June 28, 2008 10:40:26 AM(UTC)
hyperlinked

Rank: Advanced Member

Groups: Member
Joined: 4/24/2008(UTC)
Posts: 31

Is it possible to add CSS styles to text strings like the "Drop Files Here" text in the drag and drop upload box?

I'm using the localization features to change the text, but wasn't able to add CSS style info to the string as it was just interpreted as plain text.

I tried this:
iu.addParam("DropFilesHereText", "<h2>Drop files here</h2>");

Fedor  
#2 Posted : Sunday, June 29, 2008 12:47:08 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Hey,

There is no way to change the style of this text label, however you can replace it with image. Please see DropFilesHereImageFormat property for more info.

Best regards,
Fedor Skvortsov
hyperlinked  
#3 Posted : Friday, July 4, 2008 9:47:49 AM(UTC)
hyperlinked

Rank: Advanced Member

Groups: Member
Joined: 4/24/2008(UTC)
Posts: 31

I can't seem to get this to work. Here's how I'm trying to configure this:
Code:

iu.addParam("DropFilesHereImageFormat", "");

// Set upload background image
getImageUploader("ImageUploader1").setDropFilesHereImageFormat("Url=http://www.mysite.com/images/background_uploadbox.gif;Width=750;Height=250;Position=Center;");
value = getImageUploader("ImageUploader1").getDropFilesHereImageFormat();


Are there other settings that could override this background image? When I have these lines in my configuration, the upload box disappears.
hyperlinked  
#4 Posted : Friday, July 4, 2008 3:30:07 PM(UTC)
hyperlinked

Rank: Advanced Member

Groups: Member
Joined: 4/24/2008(UTC)
Posts: 31

I just realized that the "getImageUploader" part of this code probably needs to be called within an event listener. Am I correct? If so, which listener does it need to go into?

Maybe that's my problem.
Eugene Kosmin  
#5 Posted : Sunday, July 6, 2008 12:19:49 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hi,

You can set DropFilesHereImageFormat through addParam too:

Code:
iu.addParam(“DropFilesHereImageFormat”, "Url=http://www.mysite.com/images/background_uploadbox.gif;Width=750;Height=250;Position=Center;");

Best regards,
Eugene Kosmin
The Aurigma Development Team
hyperlinked  
#6 Posted : Sunday, July 6, 2008 12:58:05 PM(UTC)
hyperlinked

Rank: Advanced Member

Groups: Member
Joined: 4/24/2008(UTC)
Posts: 31

Perfect! That worked.
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.