[jQuery] Re: What does === equate to?

2007-08-02 Thread Ian Struble
!== and === are identity operators. It is a good idea to use them instead of the equality operators (!= and ==) unless you know why you would want to use equality (and the possible type coercion) over identity. Probably the biggest gotcha with equality is with falsy values (false, 0, undefined,

[jQuery] Re: Need to attach .click() event to HTML anchor link but it won't stop bubbling...

2007-05-06 Thread Ian Struble
You can also try to attach a single event handler to the root node of your tree and then only process the clicks on A-tags. function iEatEventsForBreakfast(event) { var target = $(target.event); if (target.is(a)) { // search for and open/close the folder associated with target //

[jQuery] Re: click event and z-order

2007-04-28 Thread Ian Struble
The event is not passed down to the underlying event but rather it bubbles up through the dom tree from the event where the event was triggered. http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-flow-bubbling An example is probably easier to digest. This code has click handlers at

[jQuery] Re: Interacting with TR an TD

2007-04-28 Thread Ian Struble
there a big performance impact using this piece of code? It looks like the page it taking a while do load, but I guess you have to choose between the time the page takes to load and the time you take to do everything manually.. am I right? On Apr 28, 1:20 am, Ian Struble [EMAIL PROTECTED] wrote

[jQuery] Re: Interacting with TR an TD

2007-04-28 Thread Ian Struble
On 4/28/07, Michael Geary [EMAIL PROTECTED] wrote: Indeed there is, return false. See my #1 example which is similar to yours... I should have used my eyes before I started typing. My question's code is almost exactly what you wrote, just cosmetic differences. I missed the assignment +

[jQuery] Re: Interacting with TR an TD

2007-04-27 Thread Ian Struble
Building on Karl's example and your new all-td's-must-be-empty requirement; mark all the TR's with a target class then sweep through the TD's and get rid of the target class if you find a td that is not empty. Play around a bit and see what else you can come up with. Ian

[jQuery] Re: What does this do - transport.setRequestHeader(connection, close)

2007-04-18 Thread Ian Struble
At the risk of beating a dead horse; a few links to related (and fixed) bugs in other projects (including firefox). The root cause of the hack (Dan just touched on it): https://bugzilla.mozilla.org/show_bug.cgi?id=246651 Message reporting that the above bug was fixed in the 11 Sep 2004 build

[jQuery] Re: What does this do - transport.setRequestHeader(connection, close)

2007-04-10 Thread Ian Struble
Correct, this was a work around for a pre-1.5 FF issue. My notes on it say see mozilla bug #246651 but I remember thinking that jQuery was using the same work around as another js library (prototype?) and that that project had its own bug to get rid of the work around. I thought I saw that the

[jQuery] Re: What does this do - transport.setRequestHeader(connection, close)

2007-04-10 Thread Ian Struble
Ditto :) On 4/10/07, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote: thank you John, it always bothered me! On 4/10/07, John Resig [EMAIL PROTECTED] wrote: Personally, I think this fix should just be removed - especially considering that we don't even support versions of Firefox, that old, any more.