[jQuery] Re: Do I need Livequery?

2008-04-18 Thread [EMAIL PROTECTED]
@ripple: '.showlayer' = selector '#div1' = the thing I want to fade in when you click the selector. There are lots of divs and one class, '.showlayer' for all of the fade triggers. My question was: How do I get jQuery to know which div to fade in, by looking at the href for the selector that was

[jQuery] Re: Do I need Livequery?

2008-04-17 Thread ripple
Huh? I don't get your code? What is this? $( '.showlayer' ).click( function () { $( '#div1 ).fadeIn( 750 ); } #div1 = href ?? #div1 is id http://2whoa.com/dominate/ "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: Hello there :) I've got a bi

[jQuery] Re: Do I need Livequery?

2008-04-17 Thread David McFarland
On Apr 16, 2008, at 5:25 PM, [EMAIL PROTECTED] wrote: > > Hello there :) > > I've got a bit stuck. I suspect this is a job for Livequery, but can't > understand how to use it (sorry, Ariel). > > With this: > $( '.showlayer' ).click( function () { > $( '#div1 ).fadeIn( 750 ); > > I'm trying

[jQuery] Re: Do I need Livequery?

2008-04-16 Thread [EMAIL PROTECTED]
WOW, Ariel, thanks!!! I owe you an apology - I'd been reading up on your plugins & ended up thinking LiveQuery was yours :o Apologies to Brandon A, too. I would never have figured out the solution below! Cheers :)) Cherry On Apr 17, 2:17 am, Ariel Flesler <[EMAIL PROTECTED]> wrote: > Hi Cherry

[jQuery] Re: Do I need Livequery?

2008-04-16 Thread Ariel Flesler
Hi Cherry 1- Am I that Ariel ? if so, why ? 2- You don't need LiveQuery if no links are added to the DOM after the page loaded. 3- $('a.showlayer').click(function(e){//use the tag! e.preventDefault();//we don't want the hash appearing in the address $(document.getElementsByName(th