Just to finish this one off, I discovered my problem in IE6 was
nothing to do with the jquery search operation we were discussing.
As I was working on the code I had added an object initialisation
above the line in question that had an extra comma at the end, as in-
var frames= {
Excellent! Glad to see you figured that one out. Rest assured that
*every* web developer has pulled out hair related to that particular
issue. Fortunately, in many editors today, you can run a tool called
'jslint' that does a simple syntax check for you. In my editor
(TextMate), I actually
Certainly... you're really not all that far off at all... let me just
point out a couple of things.
1) It's :first-child, not :first.
2) inside the loop, the variable - this - is a reference to the DOM
li node. Hence, to get the jQuery object for that node, use $(this)
(note the lack of
That is very, very helpful, thanks!
I knew I hadn't found the correct way to say constrain the search to
children of 'this', now I know.
To be honest I think i'm still unclear on the real difference between
the vanilla Javascript 'this' and the jquery '$(this)'. For example I
think that I could
re: this vs $(this) -
this = DOMNode
$(this) = [DOMNode] (ie, an array containing the single element,
DOMNode) that also happens to have lots of nifty methods like
'children', 'find' and 'animate'.
The jQuery version should work in pretty much all browsers though...
the compatibility layer is
I hate to say this but i'm using IE6 for compatibility testing because
that (like it or not) is still our organisation's standard
browser... :-}
On May 25, 2:03 pm, Jason Persampieri papp...@gmail.com wrote:
re: this vs $(this) -
this = DOMNode
$(this) = [DOMNode] (ie, an array containing the
In fact I tried an alert() to see what the code was doing, and it now
looks as if it's not running at all. Don't you just love IE6?
On May 25, 4:49 pm, colin_e colin.ev...@nhs.net wrote:
I hate to say this but i'm using IE6 for compatibility testing because
that (like it or not) is still our
On May 25, 3:44 am, Jason Persampieri papp...@gmail.com wrote:
Certainly... you're really not all that far off at all... let me just
point out a couple of things.
Very nice presentation!
It is likely that many novice users of jQuery will be able to benefit
from it. Please do respond to the
8 matches
Mail list logo