Sorry for taking so long to get back to you. Hopefully you've figured this
one out already... hoverIntent expects either two functions or one
configuration object:
$(foo).hoverIntent( function(){} , function(){} );
$(foo).hoverIntent( { over: function(){} , out: function(){} } );
So when you
I exchanged a few messages with Renaud (aka LideIn), trying to get
sample code... but that effort stalled. I've got a busy weekend, but
if you supply some sample code or send me a URL (on or off-list) I'll
take a look early next week.
Cheers,
Brian.
On Fri, Jun 5, 2009 at 11:11 AM,
, Brian Cherne br...@cherne.net wrote:
I exchanged a few messages with Renaud (aka LideIn), trying to get
sample code... but that effort stalled. I've got a busy weekend, but
if you supply some sample code or send me a URL (on or off-list) I'll
take a look early next week.
Cheers,
Brian
Can you send me a sample of the code that breaks?
Thanks,
Brian.
On Tue, May 26, 2009 at 2:48 AM, sutra chinesedr...@gmail.com wrote:
More finding on this issue. Turns out it may not be the issue with
jQuey v1.3.2 but the
hoverIntent script.
With hoverIntent, using v1.3.2 the flyout is
The hoverIntent plugin was meant just for this purpose. There's an initial
delay (unavoidable) but if the user's mouse slows down significantly the
hover event will fire... if their mouse continues moving the hover event is
again delayed (and rechecked). It was originally conceived for when you
Currently you get two JavaScript errors because jQuery is not defined (one
for hoverintent and the other for superfish). Try loading hoverintent and
superfish scripts *after* loading jQuery.
The second issue is a CSS issue. I'd recommend playing around with
superfish-navbar.css rules. You'll
The hoverIntent plugin assumes you're sending it either:
a) both over and out functions, or
b) a single configuration object.
When you send it only one function it assumes that that's the configuration
object. As you are only interested in using an over function, I'd recommend
sending an
Hi Ted, when hoverIntent was written (almost 2 years ago) jQuery didn't have
mouseenter or mouseleave. The hover method at the time did ignore over/out
events from child elements and hoverIntent has that code as well -- so it
simulates mouseenter and mouseleave in that respect. So you could write:
If I understand your question properly, it is possible. Try something like
this:
$(document).ready(function()
{
$(a).each(function(i){
$(this).click(function(){
alert(i);
});
});
});
Brian.
On Wed, Dec 10, 2008 at 10:29 AM, Brett Alton [EMAIL PROTECTED]wrote:
Sorry, I'm new to Google Groups
Neither JavaScript's nor jQuery's click will automatically re-bind if the
object is removed and then added again. If the link you refer to is replaced
by a new set of content (with an identical link) you may consider using a
plug-in like Brandon Aaron's Live Query:
There's another thread from today that points to the FAQ
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F
Brian.
On Wed, Dec 10, 2008 at 3:50 PM, Brian Cherne [EMAIL PROTECTED] wrote:
Neither JavaScript's nor jQuery's click
Hi Ricardo, you're correct. You can now stop any animation. At the time
hoverIntent was written a year and a half ago $(foo).stop() wasn't
available. I've been meaning to update the hoverIntent plugin/page. It's in
my personal animation queue. :)
Brian.
On Wed, Dec 3, 2008 at 1:03 PM, ricardobeat
code that is an
AJAX handler that pushes content into destination divs.
On Nov 24, 2:52 am, Brian Cherne [EMAIL PROTECTED] wrote:
Take a look at the history plug-in page code again:
http://www.mikage.to/jquery/jquery_history.html
A really important concept to understand
Take a look at the history plug-in page code again:
http://www.mikage.to/jquery/jquery_history.html
A really important concept to understand is that the history plug-in (any
history plug-in) is listening / watching for the URL to change. Any change
you want it to make going Back you will need to
to the links?
The functions represent a large block of black-boxed code that is an
AJAX handler that pushes content into destination divs.
On Nov 24, 2:52 am, Brian Cherne [EMAIL PROTECTED] wrote:
Take a look at the history plug-in page code again:
http://www.mikage.to/jquery
http://www.google.com/search?q=javascript+detect+monitor+resolution
I'm assuming you know best practices involving flexible width designs... so
I'll skip that lecture.
If you're targeting a user base that has a substantial percentage of 800x600
monitors, those same users might be using old
I haven't officially announced my slidingPanels plugin to the community.
There are still a few odd bugs with it. I'd say it's fine for a non-critical
site, but I (personally) wouldn't be comfortable with it on a
mainstream/commercial web site (yet).
There are a bunch of additional features and
I haven't tested this, but try
$( document.getElementById('123.123') )
Also note that according to the specification IDs must start with a letter
([a-zA-Z])... It sounds like even changing a period is difficult enough so
this might be a similarly difficult task given your code/data. I
Are you looking for offset ?
http://docs.jquery.com/CSS/offset
Brian.
On Mon, Mar 24, 2008 at 10:54 AM, Legster [EMAIL PROTECTED] wrote:
Is there an easy way to find the current X, Y location of any div
area?
Example of what I am trying to find:
$(this).xpage
or
$(#mainDiv).ypage
Do you have any sample/simplified code you could share? Also, what browser
is this happening in?
Brian.
On Mon, Mar 24, 2008 at 9:49 AM, Kaloyan Tsvetkov [EMAIL PROTECTED] wrote:
Hi,
I have a funny problem. I have several Divs showing and hiding as
inline alerts, confirms and other forms.
1) Make sure the container's height isn't set by some other script before
your ajax call. If it is, set it to auto before putting new data in there
and reset it after (if required for some reason).
2) Try using setTimeout(yourFunction, 0) in the AJAX callback function ...
where yourFunction is
Actually, the += and -= are perfectly legit for the animate method. They
allow you to animate a property relative to its current value.
http://docs.jquery.com/Effects/animate
I believe the margin-left is the throwing it off. Somewhere in the docs it
mentions hyphenated properties should be
I finally got around to writing documentation for the configurable options
on my two plug-ins.
hoverIntent
http://cherne.net/brian/resources/jquery.hoverIntent.html
jVariations
http://cherne.net/brian/resources/jquery.variations.html
Let me know if there's anything that still doesn't make sense
I reviewed your code. Is the project expanding/collapsing functionality
contained in 19_proto_M2.js, lines 197-263 ?
I don't think you're configuring the hoverIntent plug-in properly. It would
be best if you named your over/out functions and included in them in the
configuration object. Then just
or 10
?
@Sebioff: thanks for the idea, i should definitely try that flag idea:
typically how to solve that kind of issue in actionscript :)
Thanks to both of you for your feedback, really appreciate that.
On Feb 1, 2008 8:31 PM, Brian Cherne [EMAIL PROTECTED] wrote:
I reviewed your code
MacIE is not supported by jQuery or any of its plug-ins. I don't think any
modern JavaScript library supports it.
When building a mainstream web site (today) I'd be surprised to see
0.05%using MacIE. However, if your project has an education audience
you may need
to support it -- school budgets,
If you've still got a strange delay, try logging information to the console
(like onClick, before ajax call, after ajax response, when elements are
written to the page, etc). It would be helpful to see if the delay is in
clueTip, in the ajax call (as you suspect it is already slow), or a jQuery
I want to disagree with Danny's first statement... if you're going to create
a jQuery plug-in (re-usable and useful to all) then it's best to follow the
convention of returning the elements it's acted on. If you want it to return
something else (or nothing) don't create a plug-in -- instead create
It appears my web site is down (at least for me). I added a release zip
file to the jquery plug-in page for hoverIntent, but it's not showing up now
that I've logged out (not sure what's going on with that). Let me know if
you need the code for hoverIntent... I'll send you a zip file.
Brian.
On
hoverIntent is awfully convoluted and complex. The author of that plug-in
should be tarred, feathered, stoned, and have the hair on his head pulled
out one-by-one!... but only if your cursor comes to rest on him :)
In all seriousness, hoverIntent was originally written for a very specific
Charlie, you're adding options to a select element and then attempting to
get its width immediately, right? And when you do this the width in IE is
not correct, right?
A quick test would be to add a click event to your page that alerts the
width of the select element. I bet this will return the
The quirk is to be expected. From what I understand of timeouts, they will
never fire at 0ms... but setting a timeout to 0ms guarantees it will fire at
the next possible time and put it at the end of the call stack... and,
thankfully, in this case allows the user interface to catch up. Anyhow, I'm
coordinates
Thanks a lot for your time and help!
alex
--
*From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Brian Cherne
*Sent:* mercredi 17 octobre 2007 17:35
*To:* jquery-en@googlegroups.com
*Subject:* [jQuery] Re: continuous
A word of caution about using getUrl in flash. If there is any way getUrl
can be called before your page has finished loading, it may prevent your
page from loading fully in IE.
This happened on a large web site I worked on a year ago. We never saw the
problem in development because we were
I'm pretty sure the history plug-in works when navigating in a single-page
architecture (hijacking deep links like foo.html#deeplink), but it sounds
like this is an issue related more to the caching of a page in memory. You
may be stuck with forcing the given page not to cache.
Best to do it on
Jörn, how hard would it be to incorporate hoverIntent?
Brian.
On 8/26/07, Jörn Zaefferer [EMAIL PROTECTED] wrote:
Ganeshji Marwaha schrieb:
Jörn, this is fantastic... very re-usable as well..
I have a question/suggestion though... When i hover over one of the
items, and before the
You may be able to tweak hoverIntent's default settings to make it react
more quickly. Maybe something more like:
.hoverIntent({
sensitivity: 2,
interval: 50,
over: function(){ move(this); },
out: noop
});
Brian.
On 8/14/07, Glen Lipka [EMAIL PROTECTED] wrote:
Its a great effect
in the change from Brian to make it trigger quicker.
Glen
On 8/14/07, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
Sure, i will try that... I sincerely hope that solves the
unresponsiveness problem...
-GTG
On 8/14/07, Brian Cherne [EMAIL PROTECTED] wrote:
You may be able to tweak
.
--
*From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Brian Cherne
*Sent:* Tuesday, August 14, 2007 2:28 PM
*To:* jquery-en@googlegroups.com
*Subject:* [jQuery] Re: fancy menu - tell me what you guys think
The responsiveness is a little better but still not great
h2 id=h2a/h2
h3 id=h3a/h3
h3 id=h3b/h3
h2 id=h2b/h2
$('#h2b').prev();
returns [h3#h3b] // returns previous sibling
$('#h2b').prev('h3');
returns [h3#h3b] // returns previous sibling because it is an h3
$('#h2b').prev('.foo');
returns [] // empty, because previous sibling does have class of
then presumably while you are opening/closing panels the RH panel does not
change, ie still showing Locations; if you decide to click on Belly in the
Pattern panel, then you need to close Basics:Location which is not a
sibling
of the one you need to open!
Brian Cherne wrote:
Hi
Hi Mitchell, I'm going to try writing some code and hopefully you'll get the
idea and make it work (as it's untested). Basically, instead of writing
everything out verbosely... try to determine automatically what needs to
happen from the information stored in the DOM.
$('.AccordionPanelContent
I haven't followed this thread, so I apologize if my input is
out-of-context.
The CSS approach will likely be the fastest assuming you've cased for IE6's
background flicker issue. If you haven't, or you can't, then a JavaScript
approach will appear faster.
hoverIntent only tracks mouse movement
That depends on what you mean by free ...
http://extjs.com/license
I personally hate getting lawyers involved in any project more than
necessary. EXT, unfortunately, is definitely one where your client and their
lawyers need to make the decision. I've worked with a few that have a strict
no GPL
to jQuery? http://jquery.com/ :)
On 7/31/07, Rey Bango [EMAIL PROTECTED] wrote:
Hi Brian,
Ext has both an open source (LGPL) and commercial license. This seems to
handle the licensing spectrum well. Where are you seeing a breakdown
here? I'd like to understand this more.
Rey...
Brian
Hi Phil,
#elem1 must already have tabindex set input id=elem1 tabindex=1 /
$(e).attr('tabindex') returns a string, so you should multiply it by 1 to
convert it to a number, otherwise #elem2 will end up with a tabindex of 11
$(#elem2).attr(tabindex, $(#elem1).attr(tabindex)*1+1);
Cheers,
A few months ago I worked the weekend on a prototype that demonstrates the
appearance effect I think you're suggesting:
http://cherne.net/brian/resources/jquery.slidingPanels.html
It's a little different, totally undocumented and sparsely commented as I
was just coding to satisfy my
Recommended reading:
http://www.quirksmode.org/js/iframe.html
I just did a quick/dirty test locally and was able to manipulate the iframe
from the parent document. Using code like:
div id=triggerShow Alert/div
iframe id=myFrame name=myFrame src=page.html/iframe
script type=text/javascript
with it.
- Richard
On 7/9/07, Brian Cherne [EMAIL PROTECTED] wrote:
I've recently updated my jVariations plug-in (not sure if anyone was
using the old version). It is a developer tool that allows you to toggle
variations (aka corner cases) on a single HTML page. Useful for rapid
visualization of code
Mootools:
includes a hasClass() function:
Prototype:
includes a hasClassName() function:
Someone correct me if I'm wrong, but jQuery does have a hasClass method...
it's just called filter ... and far more powerful because you can use any
jQuery expression (not just classes).
I've recently updated my jVariations plug-in (not sure if anyone was using
the old version). It is a developer tool that allows you to toggle
variations (aka corner cases) on a single HTML page. Useful for rapid
visualization of code changes... before weaving in the real DHTML calls or
handing
Alternative A:
($(tpd_#i#).text())*1
Alternative B:
parseInt($(tpd_#i#).text())
Also, keep in mind that when adding numbers (with decimal places) in
JavaScript there's a math precision bug. I forget the example that always
breaks, but something like 64.11 + 64.11 should equal 128.22, but
I disagree.
My advice, cfreak, is to start a [EMAIL PROTECTED] on your own.
Perhaps moderate it yourself until it reaches a critical mass and then find
someone more interested in taking control. (maybe contact John or one of the
team members directly to make it official)
I suspect that folks
Are you using curvyCorners from:
http://www.talrasha.com/jquery/curvycorners/demo.html
The downloadable gzip file from that site contains a packed version of the
plug-in.
Brian.
On 6/6/07, Glen Lipka [EMAIL PROTECTED] wrote:
The Edwards Packer broke it. :(
Glen
On 6/6/07, Matt Stith
Birch [EMAIL PROTECTED] wrote:
Hi Carleigh,
The HoverIntent plugin by Brian Cherne does exactly what you want. I
had a go using it with Superfish when HoverIntent was still in beta
and had some success but there were some glitches I didn't get
around. Can't remember exactly what they were or which
Hi John, I quickly tested jQuery 1.1.3a with my jVariations plug-in and it
crashed Safari (immediately). I'm going to take a look into it this week and
will hopefully be able to provide more information. The page I was testing
it on was quite complex and Safari was already struggling (taking a
Andy,
There is a bug in Safari with rendering HTML elements (particularly anchor
tags that have a :hover pseudo-class) over a SWF. The solution to this issue
is to comment out line 21 thickbox.css. This will correct the reported
issue.
Unfortunately, in this case, when that pseudo-class is
It's not documented (as far as I can tell) but if you send a params object
to .load() it should be sent via the POST method. I'm looking at the
unpacked source of jQuery 1.1.1... load: starts on line 1842 and the
GET/POST condition starts on line 1849.
Brian.
On 5/18/07, Shelane [EMAIL
1) You're adding the class to the .accToggler element but your css was
looking for the .opened element inside the .accToggler element. 2) The
.opened definition should appear after the .accToggler definition. So the
CSS change below should work for you... give it a try...
#faq .accToggler {
My hoverIntent plug-in may help... but in the opposite way of thinking about
your problem -- it delays the onMouseOver call until the users cursor comes
to rest (or slows significantly) over the target object.
http://cherne.net/brian/resources/jquery.hoverIntent.html
Brian.
On 5/17/07, Daemach
shinking until it is no longer under the mouse and another
event is triggered...) and that repeats ad infinitum, or at least
until you move the mouse.
I need to figure out a way to ignore mouseouts until the slide
animation is complete :/
On May 17, 1:18 pm, Brian Cherne [EMAIL PROTECTED] wrote:
My
You are probably using IE6 and some element (or child element) that is
sliding has a css background image... just a guess...
http://learningtheworld.eu/2007/performance/
#2 Enforce caching I think is the safest way to fix this (without writing
nasty cross-browser code).
Brian.
On 5/17/07,
My hoverIntent plug-in might help with the unintentional function firing.
http://cherne.net/brian/resources/jquery.hoverIntent.html
Brian.
On 5/7/07, Aaron [EMAIL PROTECTED] wrote:
This works GREAT!! THANK YOU SO MUCH!!!
the only thing i have noticed is that when you hover over one
Has anyone implemented jqModal (or something like it) via the POST method?
I really enjoy how simple jqModal is for calling modal dialogs and I want to
use it on a secure web page. In order to get the right information from the
server I'll need to send in params... ideally params that are
If you're set on rolling your own menu, you might also consider my
hoverIntent plug-in:
http://cherne.net/brian/resources/jquery.hoverIntent.html
Brian.
On 4/18/07, dailo [EMAIL PROTECTED] wrote:
actually i was just thinking of a workaround..is there a way to put a
delay on the slidedown?
You can access the stylesheet object using JavaScript. However, each browser
represents CSS rules differently. There is no cross-browser way to
access/manipulate the rules. I *had* to manipulate the stylesheet object in
Safari to avoid the a:hover over swf bug... but even Safari represented the
Is there a jQuery development roadmap? Something that shows what
fixes/features/changes are planned for future releases?
I am spreading the word about jQuery to some overly cautious engineers and
they are a little uncomfortable with how young and seemingly unstable jQuery
is. I think one of the
There's got to be someone on the list who knows of something jQuery can't do
that Scriptaculous, YUI or Dojo can do. For instance, does any know if
another library can cancel/freeze/stop an animation that is in progress?
Brian.
On 4/16/07, Sean Catchpole [EMAIL PROTECTED] wrote:
Interesting
You could chain this on the end of $('#prev')
.hover(
function(){ $(this).addClass('isOver'); }, // don't forget the comma
function(){ $(this).removeClass('isOver'); }
);
And then update your CSS.
img.isOver {
cursor:pointer;
border:solid 1px blue;
}
Brian.
On 4/15/07, wyo [EMAIL
Hi Brian,
Is there a technical reason for creating the jQuery.doc object ? Wouldn't
local vars work too? I'm just worried with so common a name as doc it
seems like there's a good chance for a naming collision.
Brian. (I hope people don't think I'm talking to myself...)
On 4/15/07, Giant Jam
I stumbled upon this jQuery speed test http://john.jquery.com/speed/ from
someone else's web site. It's testing against v1.0.4 and v1.1.2 (I think)...
I understand wanting to write a backwards compatible plug-in, but in an
ideal world folks should try to use the more recent version (for speed and
71 matches
Mail list logo