I was recently tinkering with one of the sites I manage and had an idea to use the jQuery UI preview to do some animations on the page. Out of that, I got two things I'd like to ask. I initially tweeted them, and was directed here.
So here goes... First, will jQuery UI be getting convenience methods like the old Interface Elements plug-in had? Things like $().SlideToggleRight() and $().BlindToggleVertically(). I found them immensely useful, and the new API in the latest beta of UI is cumbersome and long to write, which kind of defeats the purpose of using jQuery somewhat. ("Write less. Do more.") So I thought I'd throw that out there. Second, I was wondering how to delay the firing of an event handler. It seemed like passing in an options object with a delay property would be the thing to do, but I don't believe such things are supported by default (I'd have to handle them myself). The thing here is, I want to avoid tripping mouseenter and mouseleave when the user just whips over the element, only firing the events after a short delay. If the mouse leaves before that delay, no event. I wrote a bit of code to handle it in my specific case (see below), and have two questions. First, is there any way my own code could be improved? Shorter, more efficient, etc. Second, does jQuery actually support this and i just didn't find the option? Third, if it's not supported, will it be in the future? I know I'm asking a lot in one thread. I was referred here by @jquery on Twitter, where I initially tweeted my questions. Thanks to anyone who can answer any of the questions. Voyagerfan5761 http://voyagerfan5761.blogspot.com/