RE: [JSMentors] Strange bug... jQuery click() event doesn't fire for certain links

2011-02-18 Thread Joel Dart
>To get around it, I've added the following to run on every page of the site: >jQuery('a').click(function(){document.location.href=this.href}); >I don't like this very much - it feels a little dangerous for reasons I can't >put my finger on. The reason your gut is saying this is a dangerous is tw

Re: [JSMentors] Strange bug... jQuery click() event doesn't fire for certain links

2011-02-18 Thread Tom
On 18 February 2011 13:13, Loic Giraudel wrote: > A thread about this behavior in StackOverflow > : http://stackoverflow.com/questions/1694595/can-i-call-jquery-click-to-follow-an-a-link-if-i-havent-bound-an-event-handl Ah, yes, that's interesting. So jquery's click() doesn't simulate a user mous

Re: [JSMentors] Strange bug... jQuery click() event doesn't fire for certain links

2011-02-18 Thread Mark McDonnell
Hi Tom, I'm not sure what exactly you're trying to achieve because the logo does already have a link back to the home page manually added via the tag wrapping the logo (e.g. href="/"). And running jQuery('#header a:first').click() won't do anything (as far as I'm aware) because all you are doing