Forums

Welcome Guest Search | Active Topics | Members

Style "Drop Files Here" Text? Options
hyperlinked
Posted: Saturday, June 28, 2008 6:40:26 PM
Rank: Advanced Member
Groups: Member

Joined: 4/24/2008
Posts: 30
Points: 90
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
Posted: Sunday, June 29, 2008 8:47:08 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 7/28/2003
Posts: 1,240
Points: -193
Location: WA, US
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
Posted: Friday, July 04, 2008 5:47:49 PM
Rank: Advanced Member
Groups: Member

Joined: 4/24/2008
Posts: 30
Points: 90
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
Posted: Friday, July 04, 2008 11:30:07 PM
Rank: Advanced Member
Groups: Member

Joined: 4/24/2008
Posts: 30
Points: 90
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
Posted: Sunday, July 06, 2008 8:19:49 PM
Rank: Advanced Member
Groups: Member

Joined: 9/19/2006
Posts: 351
Points: 174
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.

Aurigma Development Team
hyperlinked
Posted: Sunday, July 06, 2008 8:58:05 PM
Rank: Advanced Member
Groups: Member

Joined: 4/24/2008
Posts: 30
Points: 90
Perfect! That worked.
Users browsing this topic
Guest


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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.