You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Paul Joseph <pj...@gmail.com> on 2009/02/06 12:46:20 UTC
File upload button and delete
Hi,
I have a form where I upload files that subsequently appear on the same
form.
Question: the button for the upload widget--I would like to replace it
with a custom button more in line with the rest of the site. But I
can't find the existing button associated with the widget--it is gray
and says "Browse..." Would anyone know how to change it?
Also, the customer wants to be able to DELETE uploaded files (which I
display as a link on the form they uploaded it to.) Are there any
elegant ways to do this? Like for example can one delete attachments in
CForms using the e-mail method of deleting options i.e. "select" the
attachment, then hit the "Delete" button?
thanks in advance
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: File upload button and delete
Posted by Paul Joseph <pj...@gmail.com>.
Thanks a lot Bart, appreciate it!
brgds
Paul
Bart Remmerie wrote:
> Dear Joseph,
>
> Regarding the button just a quick & dirty answer. I remember having
> searched for the same thing one day and the best hint I came across
> was to position an image as background behind the button using css and
> attaching some simple javascript action to that image that emulates a
> button-click for the underlying button. I just googled this for you
> and found this link which could be interesting.
>
> http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom
>
> regards,
> Bart
>
>
> On Fri, Feb 6, 2009 at 12:46 PM, Paul Joseph <pjoseph@gmail.com
> <ma...@gmail.com>> wrote:
>
> Hi,
>
> I have a form where I upload files that subsequently appear on the
> same form.
>
> Question: the button for the upload widget--I would like to
> replace it with a custom button more in line with the rest of the
> site. But I can't find the existing button associated with the
> widget--it is gray and says "Browse..." Would anyone know how to
> change it?
>
> Also, the customer wants to be able to DELETE uploaded files
> (which I display as a link on the form they uploaded it to.) Are
> there any elegant ways to do this? Like for example can one
> delete attachments in CForms using the e-mail method of deleting
> options i.e. "select" the attachment, then hit the "Delete" button?
>
> thanks in advance
> Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> <ma...@cocoon.apache.org>
> For additional commands, e-mail: users-help@cocoon.apache.org
> <ma...@cocoon.apache.org>
>
>
>
>
> --
> Bart Remmerie
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: File upload button and delete
Posted by Bart Remmerie <re...@gmail.com>.
Dear Joseph,
Regarding the button just a quick & dirty answer. I remember having
searched for the same thing one day and the best hint I came across was to
position an image as background behind the button using css and attaching
some simple javascript action to that image that emulates a button-click for
the underlying button. I just googled this for you and found this link which
could be interesting.
http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom
regards,
Bart
On Fri, Feb 6, 2009 at 12:46 PM, Paul Joseph <pj...@gmail.com> wrote:
> Hi,
>
> I have a form where I upload files that subsequently appear on the same
> form.
>
> Question: the button for the upload widget--I would like to replace it with
> a custom button more in line with the rest of the site. But I can't find
> the existing button associated with the widget--it is gray and says
> "Browse..." Would anyone know how to change it?
>
> Also, the customer wants to be able to DELETE uploaded files (which I
> display as a link on the form they uploaded it to.) Are there any elegant
> ways to do this? Like for example can one delete attachments in CForms
> using the e-mail method of deleting options i.e. "select" the attachment,
> then hit the "Delete" button?
>
> thanks in advance
> Paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
--
Bart Remmerie