jQuery Error: ‘g is undefined’
Discovered the cause of this annoying (but seemingly impotent) error in a response by Karl Swedberg on Nabble.
The error was caused by my passing only one function to jQuery.hover(), eg:
jQuery(".blog-entry-date").hover(function(){ jQuery(this).animate({color: genHex()},100); });
Hover takes two functions. Instead ‘mouseenter’ should be used:
jQuery(".blog-entry-date").bind('mouseenter',function(){ jQuery(this).animate({color: genHex()},100); });
The error didn’t seem to have any effect on the execution of the code (at least in Firefox), but errors are errors, and the the cause should be hunted down. Always.
Like this post? Move it on along with:
Email |
delicious |
Digg |
Tweet |
Reddit |
Newsvine |
Furl |
Google |
Stumble |
HaoHao
| Trackback: |
Related posts:
- Using PNG Transparency + the jQuery Colour Change Plugin A tutorial describing how to achieve the "colour change on roll-over" effect used in this site's RSS and Twitter links in the sidebar....
- Scroll to Anchors With jQuery This post will introduce and explain the "scroll to anchor" method I have used throughout this site. For a demo, click "scroll to Comments", which you'll find above....
- Return an NSMutableString as NSString Avoiding “Uncaught Error 11″ with Cocoa Scroll to comments Another stumbling block on the road to Slider completion was this: NSUncaughtSystemExceptionException — Uncaught system exception: signal 11 This vague and unhelpful error message (in this case) was caused by my trying to return an NSMutableString in place of an NSString: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16...
- Shadowbox rel=’shadowbox’ Doesn’t Work? Here’s a Workaround Yesterday I was trying to implement a Shadowbox contact form in the Bay of Islands SPCA site, but I just couldn't get it to work....





























Recent Comments
Installing Jdownloader In Ubuntu
Thank You!!!!
It works like a charm!!!!!!!!!!!!
Tue, 05 Jan 2010 13:02:35 +0000
Arrived In Shanghai
Done, look left!
Sun, 03 Jan 2010 15:37:03 +0000
Arrived In Shanghai
Hi :)
I'll see what I can do!
Sun, 03 Jan 2010 14:23:07 +0000
Arrived In Shanghai
Hi Mike. It would be very useful to have the time date and weather conditions in Shanghai, on your site. Be seeing you soon. Love NZMum.
Sat, 02 Jan 2010 23:30:41 +0000
Js Kit Comments Correct Usage Of The Permalink And Path Attributes
I think it could be better
Thu, 31 Dec 2009 09:01:44 +0000