Hey Jörn,
I think it's totally cool that someone with your level of expertise,
someone whose coding prowess I aspire to, also has the self-
confidence to post such a question!
Anyway, the distinction between newbie and expert is, in my opinion,
irrelevant nearly all of the time. Much more
Karl Swedberg schrieb:
Hey Jörn,
I think it's totally cool that someone with your level of expertise,
someone whose coding prowess I aspire to, also has the self-confidence
to post such a question!
Anyway, the distinction between newbie and expert is, in my opinion,
irrelevant nearly
Hi folks,
the infamous ppk wrote in his blog:
I've learnt one other trick for distinguishing newbies and pros: ask
them the difference between |this| and |self|. Usually people who just
claim to be excellent scripters don't know the answer, while real pros do.
So obviously I am not an
self always referers to the the Window object (I think?)
this can be set based on the context (like jQuery does with event
handler functions)
FWIW, I don't find 'self' mentioned in the ECMA spec...
--Erik
On 3/13/07, Jörn Zaefferer [EMAIL PROTECTED] wrote:
Hi folks,
the infamous ppk wrote in
http://jszen.blogspot.com/2007/03/mark-of-n00b.html
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jörn Zaefferer
Sent: Tuesday, March 13, 2007 4:23 PM
To: jQuery Discussion.
Subject: [jQuery] jQuery newbies?
Hi folks,
the infamous ppk wrote in his
self refers to the current window in the DOM
D
Jörn Zaefferer wrote:
Hi folks,
the infamous ppk wrote in his blog:
I've learnt one other trick for distinguishing newbies and pros: ask
them the difference between |this| and |self|. Usually people who just
claim to be excellent
A quick google and a look at Javascript The Definitive Guide:
self is also a property of the global (window) object, one which points back
at the window object such that (window.self === window) should be true (it
isn't in Internet Explorer, but it is in Gecko-based browsers, Netscape 4.78
and
As a nonprofessional, this is too much info for me, but the details are at:
http://www.w3.org/TR/Window/#dfn-self-attribute
http://www.w3.org/TR/Window/#dfn-self-attribute
You won't find it in the ECMA spec because it's part of the DOM
D
Daniel MacDonald wrote:
self refers to the current
Self refers to the window object while this refers to a specific
object that's being worked on.
And yep, I looked it up so I'm a n00b. ;o)
Rey
Jörn Zaefferer wrote:
Hi folks,
the infamous ppk wrote in his blog:
I've learnt one other trick for distinguishing newbies and pros: ask
them
Maybe he's saying that n00bs don't know there IS a difference between this
and self...?
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:._.:||:.
Nathan Young
Cisco.com-Interface Development
A: ncy1717
E: [EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jake McGraw
Sent: Tuesday, March 13, 2007 2:45 PM
To: jQuery Discussion.
Subject: Re: [jQuery] jQuery newbies
True,
this means this email, self is referring to me.
Bruce P
bkdesign
- Original Message -
From: Chris Domigan
To: jQuery Discussion.
Sent: Tuesday, March 13, 2007 5:55 PM
Subject: Re: [jQuery] jQuery newbies?
Maybe he's saying that n00bs don't know there IS a difference
maybe he's a buddhist coder that contemplates The Great this but does not
believe in the self ??
_
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Domigan
Sent: mardi 13 mars 2007 22:56
To: jQuery Discussion.
Subject: Re: [jQuery] jQuery newbies?
Maybe he's saying
Nathan Young -X (natyoung - Artizen at Cisco) schrieb:
I think knowing what this is and being able to use it appropriately is
pretty critical.
I think never having given a flying *** about self and having no idea what it
is, is totally natural and not indicative of anything.
Thanks all
14 matches
Mail list logo