Yes, that's actually exactly what I tried. But it didn't seem to do
anything for me in FF3

On Jan 28, 7:58 pm, Walter Lee Davis <> wrote:
> I have done this by firing a plain old click event on the file  
> control. While this works in some browsers, it is not absolutely  
> consistent.
> $('fake_file').observe('click',function(evt){
>         Event.stop(evt);
>         $('real_file').click();
> });
> Walter
> On Jan 28, 2009, at 10:35 PM, solidhex wrote:
> > I am trying to figure out how I would re-route an event elsewhere.
> > For example, a click observer is on a link, but when that link is
> > clicked, I'd like to open the default input type="file" view. Is this
> > possible? I tried passing the focus to the file input, but this did
> > not work. Did I need to set up a custom event with fire?
You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to