[jQuery] Re: click away from layer to disappear

2007-08-27 Thread gr00vy0ne
Out of curiosity, is IE compatible with the $(window).bind function? In testing my solution, IE6/IE7 doesn't seem to recognize the click at all. For a simple test, I simply did the following: $(window).bind('click', function(ev) { alert("clicked"); } In Firefox and Safari, I ge

[jQuery] Re: click away from layer to disappear

2007-08-24 Thread gr00vy0ne
Thank you so much! That's exactly the direction I needed for my code. I got it working and added an extra condition to close the layer if I clicked on an actionable item within the pop-up (i.e. close img button and/or form buttons). On Aug 24, 1:36 pm, "Richard D. Worth" <[EMAIL PROTECTED]>

[jQuery] Re: click away from layer to disappear

2007-08-24 Thread Richard D. Worth
On 8/24/07, gr00vy0ne <[EMAIL PROTECTED]> wrote: > > > Thanks for the info. Will the window bind work for me? > > My understanding is that with "window bind" a click anywhere > (including the pop-up layer) will make the layer disappear. How would > I exclude my pop-up layer from disappearing? One

[jQuery] Re: click away from layer to disappear

2007-08-24 Thread gr00vy0ne
Thanks for the info. Will the window bind work for me? My understanding is that with "window bind" a click anywhere (including the pop-up layer) will make the layer disappear. How would I exclude my pop-up layer from disappearing? On Aug 23, 12:10 pm, "Benjamin Sterling" <[EMAIL PROTECTED]> wrot

[jQuery] Re: click away from layer to disappear

2007-08-23 Thread Benjamin Sterling
If you are trying to set it to disappear once the user "clicks" on something else, you can do $(window).bind('click',function(){//your code}); but if you doing something like, the user clicks button to bring layer up then the mouseout of the button or the layer, the layer disappears. You will nee