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 <wa...@wdstudio.com> 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 & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to