Re: [jQuery] hoverIntent r5 = plug-in ready to be plugged-in

2007-03-29 Thread Brian Cherne
flexible plugins like yours that make websites a pleasure to build. Cheers, -THEO- On Mar 28, 2007, at 2:25 AM, Brian Cherne wrote: I'm happy to announce that my first plug-in, hoverIntent, is ready for general use. < http://cherne.net/brian/resources/jquery.hoverIntent.html > hoverInte

[jQuery] hoverIntent r5 = plug-in ready to be plugged-in

2007-03-27 Thread Brian Cherne
I'm happy to announce that my first plug-in, hoverIntent, is ready for general use. < http://cherne.net/brian/resources/jquery.hoverIntent.html > hoverIntent is a function that attempts to determine the user's intent onMouseOver. It works like, was derived from and is interchangeable with jQuery

Re: [jQuery] Quality control for plugins

2007-03-27 Thread Brian Cherne
unity. Brian. On 3/27/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: Brian Cherne schrieb: > On 3/26/07, *Jörn Zaefferer* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > wrote: > > Unfortuanetely, Javadoc is a bit limited for documenting jQuery > plugins.

Re: [jQuery] Quality control for plugins

2007-03-26 Thread Brian Cherne
On 3/26/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: Unfortuanetely, Javadoc is a bit limited for documenting jQuery plugins. For example, most plugins offer "options", that is, they accept a object whose properties are used to override any set defaults. How do you document all these options vi

Re: [jQuery] Quality control for plugins

2007-03-26 Thread Brian Cherne
object (aka "this") that called hoverIntent, and the event object * @authorBrian Cherne <[EMAIL PROTECTED]> */ (function($){$.fn.hoverIntent=function(f,g){ };})(jQuery); Hopefully folks are submitting fully-commented/formated in addition to packed/minified files. This is e

Re: [jQuery] Quality control for plugins

2007-03-26 Thread Brian Cherne
nction call *out: hideNav// function = onMouseOut callback (required) * }); * * @param f onMouseOver function || An object with configuration options * @param g onMouseOut function || Nothing (use configuration options object) * @returnThe object (aka "this") tha

Re: [jQuery] Quality control for plugins

2007-03-26 Thread Brian Cherne
I don't know how I'd feel about being forced to create a getting started, code samples, faq and download area. At some point we'll be asking too much of plug-in authors... but while we're making a list... :) - $-friendly wrapper (as stated before) - jslint error-free (one step up form missing sem

Re: [jQuery] hoverIntent r3 -- animate vs. hoverIntent

2007-03-26 Thread Brian Cherne
I had to plug-in my mouse to test this one too. :) The solution was to use a self-calling timeout instead of an interval. That guarantees that the polling intervals (now polling timeouts, I guess) are spaced apart even if one fires later than expected. Argh. How frustrating. If only... Brian.

Re: [jQuery] hoverIntent r3 -- animate vs. hoverIntent

2007-03-25 Thread Brian Cherne
one of the polling intervals, so that two are firing in very close succession. Hopefully my next posting will have an official "ready for production" plug-in announcement. :) Brian. On 3/25/07, Brian Cherne <[EMAIL PROTECTED]> wrote: I've updated the Firebug console.log

Re: [jQuery] hoverIntent r3 -- animate vs. hoverIntent

2007-03-25 Thread Brian Cherne
eHover. Brian. On 3/24/07, Brian Cherne <[EMAIL PROTECTED]> wrote: If the mouse is in the target zone and you're moving it, the mouseOver event should not be triggered. You can test this by mousing over just one of the "target" LI tags. If you stay within that LI a

Re: [jQuery] hoverIntent r3 -- animate vs. hoverIntent

2007-03-24 Thread Brian Cherne
rian, From my playing around it seems that it gets triggered because mouse is in the target zone at each check (even though it's been moved around a lot.) Does the bug go away if you lower the interval way down? -Dan ------ *From:* [EMAIL PROTECTED] [mailto:[E

[jQuery] hoverIntent r3 -- animate vs. hoverIntent

2007-03-24 Thread Brian Cherne
I've re-written hoverIntent since the last time I posted. It now has configurable options, a mouseOut timeout, and is $-friendly. However, not all is good in the land of hoverIntent. I've been struggling with this one bug for a while (hence the delay since my last update) and I've finally (sucked

Re: [jQuery] getting the selectedIndex of a dynamic select

2007-03-24 Thread Brian Cherne
var valueOfSelected = $("#list [EMAIL PROTECTED]").val(); And, instead of onClick you probably want to use onChange. Note, when you are in the function "this" refers to the DOM object that fired the event (that has selectedIndex). When you wrap it in $(this) you then have the jQuery object (whic

Re: [jQuery] hoverIntent = my first plug-in

2007-03-23 Thread Brian Cherne
option could be something like ignoreSubElements:true by default then you just need to change the line in handleHover() to "if (cfg.ignoreSubElements && p == this){return false;}" Kind regards, George Brian Cherne wrote: > > WHAT? > hoverIntent is a function that attemp

Re: [jQuery] Jquery can learn from Mootools for distribution its code

2007-03-23 Thread Brian Cherne
I really like the one-size fits all idea. At ~20k it's really not bad (even on high traffic sites). While I don't use all of jQuery's functions on a given project it's really nice to know what's available to me... without having to patch the base library. It will be really tricky to write complex

Re: [jQuery] (OT) DED|Chain

2007-03-20 Thread Brian Cherne
I have a hard enough time selling jQuery's 20 KB overhead. DED|Chain's 100 KB download is not practical for real-world sites. Not to mention the pronunciation of DED|Chain comes off sounding like "Dead Chain"... and that just makes it sound so informal / less business-like. But I like this guy's

Re: [jQuery] how do i get 's UL tag id?

2007-03-19 Thread Brian Cherne
Also, be careful, according to the spec: *ID* and *NAME* tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods ("."). You can probably get away with using just a number for an ID, but i

Re: [jQuery] the pitfalls of jquery

2007-03-16 Thread Brian Cherne
Of course Benjamin knows that this list is public and indexed by search engines (at least Google), so he wouldn't actually rename jQuery to bQuery and honestly think he could get away with it. ;) Good luck! Brian. On 3/16/07, Chris Ovenden <[EMAIL PROTECTED]> wrote: On 3/15/07, Benjamin Sterl

Re: [jQuery] hoverIntent = my first plug-in

2007-03-13 Thread Brian Cherne
en users unintentionally mouseout when moving to a sub-menu. One other suggestion is adding in support for handling the child node issue that hover addresses. So if there's a child element of say the LI that "gains hover" a mouseout for the parent LI won't be fired. Great work

Re: [jQuery] hoverIntent = my first plug-in

2007-03-13 Thread Brian Cherne
interval: 100 }, o || {}); ... }; > - make it more jQuery $-friendly (first few attempts have failed) As already mentioned by Klaus, you can force block scope by wraping your code in the following self calling function. (function($) { ... })(jQuery); -- Brandon Aaron On 3/13/07, Brian Ch

Re: [jQuery] Reference to the element that triggered the event (Karl Rudd)

2007-03-13 Thread Brian Cherne
Hi John, I think what you want is event.target $("li.selectable").click(function(e){console.log(e.target)}); I'm so happy I bookmarked that page because I can't find a link to it anywhere (not even on Google!). Is it old/new? Brian. On 3/13/07, John

[jQuery] hoverIntent = my first plug-in

2007-03-13 Thread Brian Cherne
WHAT? hoverIntent is a function that attempts to determine the user's intent... like a crystal ball, only with mouse movement! It works like (and was derived from) jQuery's built-in hover. However, instead of immediately calling the onMouseOver function, it waits until the user's mouse slows down

Re: [jQuery] jQuery 1.1.2

2007-03-01 Thread Brian Cherne
Expandos are not proprietary to Microsoft. They are custom attributes. For instance: var oDiv = document.getElementById('myDiv'); oDiv.collapsible = "true"; // safe expando var oSpan = document.getElementById('mySpan'); oDiv.relatedSpan = oSpan; // potentially dangerous expando oDiv.relatedSp