[jQuery] Re: Detecting a click "off" an element

2008-11-19 Thread Hector Virgen
That depends. If your popup is a child-element of the overlay, then clicking the popup will fire the click event of the overlay. So you should make them sibling elements: -Hector On Wed, Nov 19, 2008 at 9:40 AM, jonhobbs <[EMAIL PROTECTED]> wrote: > > Liam, > > That sounds interesting, pres

[jQuery] Re: Detecting a click "off" an element

2008-11-19 Thread jonhobbs
Liam, That sounds interesting, presumably my popup will be the only thing with a z-layer higher than the overlay so the overlay wouldn't receive the click event if the popup was clicked? Jon On Nov 19, 5:28 pm, Liam Potter <[EMAIL PROTECTED]> wrote: > just also create a transparent fullpage ove

[jQuery] Re: Detecting a click "off" an element

2008-11-19 Thread jonhobbs
Hi Donald, I can't help feeling that if I google "sticky hover" I might not like what I find but I'll give it a go. Thanks On Nov 19, 5:19 pm, "Donald J. Organ IV" <[EMAIL PROTECTED]> wrote: > Sounds like you want a sticky hover. > > > > > > - Original Message - > From: "jonhobbs" <[E

[jQuery] Re: Detecting a click "off" an element

2008-11-19 Thread Liam Potter
just also create a transparent fullpage overlay, so when a user clicks on the page (actually the div overlay) you can do something like $("div.overlay").click(function () { $(".classname").hide(); }); jonhobbs wrote: HI, I'm trying to make a layer popup when you focus on a text box. T

[jQuery] Re: Detecting a click "off" an element

2008-11-19 Thread Donald J. Organ IV
Sounds like you want a sticky hover. - Original Message - From: "jonhobbs" <[EMAIL PROTECTED]> To: "jQuery (English)" Sent: Wednesday, November 19, 2008 12:17:55 PM GMT -05:00 US/Canada Eastern Subject: [jQuery] Detecting a click "off" an element HI, I'm trying to make a layer popup