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
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
Hi John, I think what you want is event.target
$(li.selectable).click(function(e){console.log(e.target)});
http://docs.jquery.com/Events_%28Guide%29
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
|| {});
...
};
- 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 Cherne [EMAIL PROTECTED] wrote
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 and I look forward to this!
Cheers,
-Jonathan
On 3/13/07, Brian Cherne [EMAIL PROTECTED] wrote
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
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 if you
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
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
in handleHover() to if
(cfg.ignoreSubElements p == this){return false;}
Kind regards,
George
Brian Cherne wrote:
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
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 (which
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
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:[EMAIL PROTECTED] *On
Behalf Of *Brian Cherne
*Sent:* Saturday, March 24, 2007 7:44
.
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 and keep your mouse moving
the sensitivity threshold
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 messages. They are now showing
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.
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
)
* });
*
* @param f onMouseOver function || An object with configuration options
* @param g onMouseOut function || Nothing (use configuration options
object)
* @returnThe object (aka this) that called hoverIntent, and the event
object
* @authorBrian Cherne [EMAIL PROTECTED]
*/
(function
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 even more important when you combine
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 via
.
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.
For example, most plugins offer options
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
,
-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
hoverIntent is a function that attempts to determine the user's intent
onMouseOver. It works like
23 matches
Mail list logo