0

File upload on Image

asked 2010-06-10 13:00:59 +0800

kapil4ya gravatar image kapil4ya
172 2

Is it possible to have file upload on Image click, just like button provides using upload="true" ?

I tried but no such method exists for image. What I am wondering is whether it can be done by some code tweaking?

I could manage to make a button look like an image with the following css,


<button  image="${c:l('app.button.plusbutton')}" 
style="vertical-align: top; background: none; border: none; cursor:pointer;" /> 

But as soon as I set upload="true", button with the image aligned center shows up...

Any idea?

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2010-06-10 17:42:50 +0800

vinhvo gravatar image vinhvo
369 3

refer here :http://docs.zkoss.org/wiki/File_Upload

link publish delete flag offensive edit

answered 2010-06-11 00:19:51 +0800

kapil4ya gravatar image kapil4ya
172 2

Thanks vinhvo for the reply,

What I want is to click the image and it should open the browse file window and not the file upload itself.

Thanks

link publish delete flag offensive edit

answered 2010-06-11 02:52:04 +0800

vinhvo gravatar image vinhvo
369 3

<toolbarbutton image="/img/1.gif" upload="true" onUpload="img.setContent(event.getMedia())" style="cursor:pointer;" />
<image id="img" ></image>
Close enough ?

link publish delete flag offensive edit

answered 2010-06-13 22:14:27 +0800

SimonPai gravatar image SimonPai
1696 1

Hi all,

I have added this idea to the feature request.

Regards,
Simon

link publish delete flag offensive edit

answered 2013-05-21 13:30:18 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

Hi Simon

The above feature is available in ZK Latest version 6.5.2 ?

Senthil M

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-06-10 13:00:59 +0800

Seen: 485 times

Last updated: May 21 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More