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 <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
