Hi Brandon Thanks very much for your help. For some reason I was thinking that livequery would except events like "load"... I was also missing the extra function() inside the livequery call. With this I can now use livequery in other places where ajax is refreshing parts of the page.
Thanks as well for the link... looks like a great resource (going in my feed reader). All the best Scott On Nov 10, 2:00 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote: > Here is how you'd write those utilizing Live Query. > $('.hover_info').livequery(function() { $(this).hide(); }); > > $('.file').livequery(funcion() { > $(this).hover(function() { > $(this).find('.hover_info').slideDown(220); > }, function() { > $(this).find('.hover_info').slideUp(220); > }); > > But ... let me see if I can help you optimize the hover a little. Instead of > using the hover helper method, I'd just bind the mouseenter and mouseleave > events manually like this. > > $('.file').livequery('mouseenter mouseleave', function(event) { > $('.hover_info', this)[ "slide" + (event.type == "mouseenter" ? "Down" : > "Up") ](220); > > }); > > And finally, I'd recommend that you use the technique found at this Learning > jQuery post to hide your .hover_info via CSS when JS is > enabled.http://www.learningjquery.com/2008/10/1-awesome-way-to-avoid-the-not-... > > Hiding something should typically be the job of your CSS. :) > > -- > Brandon Aaron > > On Mon, Nov 10, 2008 at 6:11 AM, elev3n <[EMAIL PROTECTED]> wrote: > > > Hi All, > > I was wondering if someone could help me translate this code: > > > $('.hover_info').hide(); > > > $('.file').hover( > > function() { > > $(this).find('.hover_info').slideDown(220); > > }, > > function() { > > $(this).find('.hover_info').slideUp(220); > > } > > ); > > > into something that works with the livequery plugin (http:// > > brandonaaron.net/docs/livequery/). Both of these are called on page > > load. Everything I try seems to be throwing errors. I have tried along > > the line of: > > > $('.hover_info').livequery().hide(); > > $('.hover_info').livequery('load',hide()); > > > Any tips would be greatly appreciated. > > > Thanks > >