Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #14868

Re: Why is .click() not effective and requires us to press on Refresh?

From Gregor Kofler <usenet@gregorkofler.com>
Newsgroups comp.lang.javascript
Subject Re: Why is .click() not effective and requires us to press on Refresh?
Date 2012-07-05 14:47 +0200
Organization A noiseless patient Spider
Message-ID <jt42ck$h36$1@dont-email.me> (permalink)
References <807guldukp.fsf@somewhere.org> <jsuoco$9ea$1@dont-email.me> <804npndfpj.fsf@somewhere.org> <jt1b58$2j4$1@dont-email.me> <80r4sqwu1r.fsf@somewhere.org>

Show all headers | View raw


Am 2012-07-05 09:23, Sebastien Vauban meinte:
> Hi Gregor,
>
> Gregor Kofler wrote:
>> Am 2012-07-04 11:43, Sebastien Vauban meinte:
>>> Gregor Kofler wrote:
>>>> Am 2012-07-03 12:09, Sebastien Vauban meinte:
>>>>> I've made up an example of what I'm trying to achieve in
>>>>> http://jsfiddle.net/svajquery/ttVUA/4/.
>>>>>
>>>>> I have "tabified" all H2, and want to click on a link in the first tab
>>>>> ("Dashboard") and want to be redirected on the right place of the second tab
>>>>> ("Tasks").
>>>>>
>>>>> While the URL is correctly displayed in the address bar of the browser (at
>>>>> least when testing those files in a real browser environment), the .click() is
>>>>> not effective. I must press on the Refresh button to really go where I want
>>>>> to.
>>>>>
>>>>> Do you have any explanation?  I surely miss something!
>>
>> Perhaps some old-school debugging would help. As an example:
>>
>> does $(this.hash) result in a DOM element?
>
> As I said, I'm absolutely no expert. How do you test that?  With an alert box?

Depending on your Browser Firebug, IE Developer Tools, Chrom(e|ium) 
Developer Tools, Opera DragonFly.

>> Do what does this.hash evaluate in this line? $("tab1") probably won't do
>> the trick, but $(".tab1") could work.
>
> If I write: alert($(this.hash));
> the only thing I see displayed is: [object Object]

As expected, since Object.prototype.toString() is invoked.

> If I write: alert($(this.hash).toSource());
> I get: ({length:1, 0:({}), context:({}), selector:"#dashboards"})
 >
> Does this help?

I'm not in urgent need of help. But you could try - with one of the 
above mentioned tools - what $(this.hash) yields.

Gregor

-- 
http://vxweb.net

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Why is .click() not effective and requires us to press on Refresh? "Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com> - 2012-07-03 12:09 +0200
  Re: Why is .click() not effective and requires us to press on Refresh? Gregor Kofler <usenet@gregorkofler.com> - 2012-07-03 14:26 +0200
    Re: Why is .click() not effective and requires us to press on Refresh? "Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com> - 2012-07-04 11:43 +0200
      Re: Why is .click() not effective and requires us to press on Refresh? SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-07-04 12:13 +0200
        Re: Why is .click() not effective and requires us to press on Refresh? "Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com> - 2012-07-04 14:37 +0200
      Re: Why is .click() not effective and requires us to press on Refresh? Gregor Kofler <usenet@gregorkofler.com> - 2012-07-04 13:58 +0200
        Re: Why is .click() not effective and requires us to press on Refresh? "Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com> - 2012-07-05 09:23 +0200
          Re: Why is .click() not effective and requires us to press on Refresh? Gregor Kofler <usenet@gregorkofler.com> - 2012-07-05 14:47 +0200
        Re: Why is .click() not effective and requires us to press on Refresh? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-07-05 16:48 +0200
  Re: Why is .click() not effective and requires us to press on Refresh? SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-07-03 20:11 +0200
    Re: Why is .click() not effective and requires us to press on Refresh? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-07-03 18:25 +0000
      Re: Why is .click() not effective and requires us to press on Refresh? Gene Wirchenko <genew@ocis.net> - 2012-07-03 13:16 -0700
        Re: Why is .click() not effective and requires us to press on Refresh? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-07-03 21:10 +0000
      Re: Why is .click() not effective and requires us to press on Refresh? SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-07-04 09:49 +0200
        Re: Why is .click() not effective and requires us to press on Refresh? SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-07-04 10:18 +0200
    Re: Why is .click() not effective and requires us to press on Refresh? "Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com> - 2012-07-04 14:36 +0200
      Re: Why is .click() not effective and requires us to press on Refresh? "Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com> - 2012-07-04 15:15 +0200

csiph-web