[jQuery] Re: divert click to an anchor

2007-08-27 Thread tru.thought
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

[jQuery] Re: divert click to an anchor

2007-08-21 Thread Gordon
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

2007-08-21 Thread Mitchell Waite
: [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') });

[jQuery] Re: divert click to an anchor

2007-08-21 Thread John Liu
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 > >

[jQuery] Re: divert click to an anchor

2007-08-21 Thread Karl Rudd
> > > > > 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

[jQuery] Re: divert click to an anchor

2007-08-21 Thread Mitchell Waite
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

[jQuery] Re: divert click to an anchor

2007-08-21 Thread John Beppu
$('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

[jQuery] Re: divert click to an anchor

2007-08-21 Thread John Liu
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

[jQuery] Re: divert click to an anchor

2007-08-21 Thread Michael E. Carluen
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

[jQuery] Re: divert click to an anchor

2007-08-21 Thread John Liu
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: >

[jQuery] Re: divert click to an anchor

2007-08-21 Thread John Beppu
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!

[jQuery] Re: divert click to an anchor

2007-08-21 Thread John Beppu
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(); > }