For the interested, this is not possible in Firefox as of its current
release. Routing a click event to the file input does seem to work in
IE6+IE7 and Safari 3 though.
On Feb 4, 9:50 am, solidhex wrote:
> Thanks David, I'll see what I come up with ;)
>
> On Feb 4, 3:14 am, david wrote:
>
> > H
Thanks David, I'll see what I come up with ;)
On Feb 4, 3:14 am, david wrote:
> Hi,
>
> I think that every body has understand, but there is no way to do $
> ('elem').click() on FF.
> This work on IE, and simulate a real click on the element, but it's
> not (I don't think !) in standard.
> And t
Hi,
I think that every body has understand, but there is no way to do $
('elem').click() on FF.
This work on IE, and simulate a real click on the element, but it's
not (I don't think !) in standard.
And thanks, because I did not know it works in Safari.
so you should have to use a tricks to use
I should try asking this another way, because I dont think I was clear
before.
Is it possible to emulate the click() method that IE and Safari 3 seem
to support using Prototype?
I
On Jan 30, 4:08 am, Радослав Станков wrote:
> Firing native events like click and others is not available.
> You
Firing native events like click and others is not available.
You can try with custom events - http://www.prototypejs.org/api/element/fire
( unfortunately, there isn't much documentation on the official site :
( , but google helps in this case)
or use this hack witch jdalton wrote here : http://pa
Hi solidhex,
I think in this case, you should use the custom event.
Let's try something like that:
$(real_file').observe('launch:file',function(evt){
Event.stop(evt);
alert('real file launching');
});
$('fake_file').observe('click',function(evt){
Event.stop(evt);
That's what I meant about it being uneven in browsers. IE will appear
to do it, but then the resulting file won't actually upload. Safari
works perfectly. I still haven't worked it all out.
Walter
On Jan 29, 2009, at 1:12 PM, solidhex wrote:
> Yes, that's actually exactly what I tried. But
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
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, solidhe