Worked on every comment link I clicked on the homepage.

 

Rick

 

 

 

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, August 30, 2007 10:48 AM
To: [jQuery]
Subject: [jQuery] What the heck??? Click event intermittently...

 

On my blog users click the link at the bottom of each section to expand the
comments section for that post:

 

http://www.andyandjaime.com/

 

The problem is that it's working intemittently in IE7 (haven't tested 6
yet). I'll load the page, click the link and it'll work. Next time I load
the page, it WON'T work. It appears to be consistent in FF2...it works every
time. In IE7, sometimes the section expands as desired, sometimes the page
goes to the link in the href tag. It's like it completely ignores my jQuery
click handler.

 

Here's the relevant HTML

<div class="openComments">
    <a href="Teeth!">Comments :4: - View comments</a>
</div>

(I know the link is bogus, but I'm just testing). 

 

Here's the jQuery code:

$('.openComments a').click(function(){
 
$(this).parents('.openComments').next('.comments').slideDown().parent('.comm
entShell').ScrollTo(800);
    return false;
});

 

Please help!

 

 

____________________________________

 

Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249

[EMAIL PROTECTED]
www.dealerskins.com <http://www.dealerskins.com/> 

 

<<image001.png>>

Reply via email to