Take a look at the File Style Plugin, by Mika Tuupola:
http://groups.google.com/group/jquery-en/browse_thread/thread/81a52acc7ea2eb6c
http://www.appelsiini.net/projects/filestyle
http://www.appelsiini.net/projects/filestyle/demo.html
- Richard
On Nov 7, 2007 5:12 PM, Gilles Ruppert <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I am relatively new to jQuery, so sorry if this question has an
> obvious answer!
>
> Our company just got the designs in for a new feature on our website.
> It involves uploading a picture, so we need a <input type="file"/>
> field.
>
> However, the design has a nicely styled link (read: image) instead of
> the normal control.
>
> I thought about styling a link and use that as a trigger to a hidden
> upload field, which would then trigger the file browser once clicked
> (i.e. in the style of the flickr uploader).
>
> However, whilst trying to put a proof of concept together, I couldn't
> get the file upload browser to open.
>
> here is my code:
> $('#trigger').click(function(){
> $('#upload').trigger('click');
> });
>
> Any help is really appreciated!
>
> Cheers,
>
> Gilles
> P.S: anyone going to @media ajax in london? maybe see you there!
>
>