[jQuery] Re: File Input field Help

2009-04-07 Thread RayZ
you must filter your events by target $("#form_container").bind("click", function(event){ if (event.target !=$("#id_content")[0]) $ ("#id_content").trigger('click'); });

[jQuery] Re: File Input field Help

2009-02-27 Thread Chris
*sighs* on behalf of spam. :( Anyone know have suggestions as to what I am doing wrong. On Feb 27, 2:11 am, saifullah hanif wrote: > http://tinyurl.com/cyecufhttp://tinyurl.com/ahvxzc > > http://tinyurl.com/8rwmkr > > http://tinyurl.com/7wbm8o > On 2/26/09, Chris wrote: > > > > > I tried this:

[jQuery] Re: File Input field Help

2009-02-27 Thread saifullah hanif
http://tinyurl.com/cyecuf http://tinyurl.com/ahvxzc http://tinyurl.com/8rwmkr http://tinyurl.com/7wbm8o On 2/26/09, Chris wrote: > > > I tried this: > >$("#form_container").click(function(event) { >event.stopPropagation(); >$("#id_content").trigger('click'); >}); > > AND

[jQuery] Re: File Input field Help

2009-02-26 Thread Chris
I tried this: $("#form_container").click(function(event) { event.stopPropagation(); $("#id_content").trigger('click'); }); AND This: $("#form_container").bind("click", function(event){ event.stopPropagation(); $("#id_content").trigger('click'); })

[jQuery] Re: File Input field Help

2009-02-24 Thread mkmanning
The click event is bubbling, try adding event.stopPropagation() On Feb 24, 1:07 pm, Chris wrote: > Hello so I am trying to create an image that once clicked will trigger > the file input field but I am getting an error Here is what I am > doing: > > # Set the image in the div > $("#form_containe