Actually, I don't believe that this is necessarily a browser problem. I ahve
dynamic links all
over a site that use, and previous version of jquery Click() function fired
the link in the same
manner as a click on the link itself, nothing has changed in my code, and an
upgrade to the
newest ver
If the anchor you want to fire is inside the div and is the only
anchor in the div then maybe this might work.
$('div.test').click (function ()
{
alert ('div.test clicked');
$('a', this).trigger ('click');
});
On Aug 22, 2:53 am, John Liu <[EMAIL PROTECTED]> wrote:
>
>
>
> $(document
: [jQuery] Re: divert click to an anchor
There's not really that many ways. John's method is (AFAIK) the only
way that actually works. i.e.:
$('div.test').click(function(event){ location.href =
$('a').attr('href') });
t way.
>
> Karl Rudd
>
> On 8/22/07, Mitchell Waite <[EMAIL PROTECTED]> wrote:
>
>
>
> > Does anyone know why there are so many ways to do this?
>
> > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> > Behalf Of John Beppu
> >
>
>
>
>
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of John Beppu
> Sent: Tuesday, August 21, 2007 8:56 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: divert click to an anchor
>
>
>
>
> $('d
Does anyone know why there are so many ways to do this?
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Beppu
Sent: Tuesday, August 21, 2007 8:56 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: divert click to an anchor
$('div.test').clic
$('div.test').click(function(event){ location.href = $('a').attr('href')
});
On 8/21/07, John Liu <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> $(document).ready(function(){
> $("div.test").click(function(){
> alert('div.test clicked');
> $("a").click();
> });
> });
>
> http://google.co
Hi Michael,
I think you might have misunderstood my problem. The div.text.click
is firing properly, it's the a.click that isn't firing.
---
On 8/21/07, John Beppu wrote:
> The click() function doesn't actually simulate a click.
> It's true purpose is to setup on onclick handler.
New question
John:
Try using bind(); with click()
$("div.test").bind("click", function(){
$("a").click();
});
Hth,
Michael
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of John Liu
> Sent: Tuesday, August 21, 2007 6:53 PM
> To: jQuery (Eng
Thanks for clarifying that, that was what I assumed.
It's funny, I can't even get this to work:
http://docs.jquery.com/Events#click.28.29
Did this used to work and now broke?
jliu
On Aug 22, 1:15 pm, "John Beppu" <[EMAIL PROTECTED]> wrote:
> On 8/21/07, John Beppu <[EMAIL PROTECTED]> wrote:
>
On 8/21/07, John Beppu <[EMAIL PROTECTED]> wrote:
>
> The click() function doesn't actually simulate a click.
>
> It's true purpose is to setup on onclick handler.
s/It's/Its/;# argh!
The click() function doesn't actually simulate a click.
It's true purpose is to setup on onclick handler.
On 8/21/07, John Liu <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> $(document).ready(function(){
> $("div.test").click(function(){
> alert('div.test clicked');
> $("a").click();
> }
12 matches
Mail list logo