Welcome Guest Search | Active Topics | Sign In | Register

ajax uploader - issue with using image as the browse button Options
tim
Posted: Tuesday, June 23, 2009 10:08:46 PM
Rank: Member
Groups: Member

Joined: 3/29/2009
Posts: 29
Hi,
I seem to have an issue when replacing the standard "Browse..." with a more elegant "browse" button (png file).
Ihave used the option "BackgroundImage" to refer to the png file and I can get the image to appear, however, there are issues with the various browsers rendering the image correctly.
I suspect I am not setting the options correclty as I could only get the png file to appear by fudging the text in the "BrowseButtonText" to be a set of blank spaces.

Maybe I need to set something else when using images?


Also, is it possible to get rollovers working with a browse button image. (ie put Javascript logic against the image)?
eo_support
Posted: Tuesday, June 23, 2009 10:13:11 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will need to set UseLinkButton to true and then modify BrowseButtonText to something like this:

Code: HTML/ASPX
<img border="0" src="your_browse_button_image.gif" />


Note the size of the browse button image should be roughly identical to the original browse button.

You can also do roll over this way because whatever you give to BrowseButtonText is interpreted as raw HTML.

Thanks!
tim
Posted: Wednesday, June 24, 2009 7:06:25 PM
Rank: Member
Groups: Member

Joined: 3/29/2009
Posts: 29
thankyou very much.
It has now been tested in IE6 IE7 IE8 and firefox and it works fine.
Angel
eo_support
Posted: Wednesday, June 24, 2009 7:57:50 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great to hear that! Please feel free to let us know if you have any other questions.


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.