I was tying to use nodeType to make sure that a node was an element in
my javascript, but it wasn't working. Then when I did
alert(aNode.nodeType); I got undefined, I was really confused so I tried
alert(document.nodeType); and I got undefined again! Is there a reason
I'm getting undefined
On Fri, 11 Mar 2005 08:23:40 -0500, Alan Trick [EMAIL PROTECTED] wrote:
I'm getting undefined instead of DOCUMENT_NODE or 9? I used
if(aNode.tagName){ ...} to achive the required result, but it's a hack
and I want to know what's wrong with nodeType?
I suspect it's because you've returned a
On 12 Mar 2005, at 12:23 AM, Alan Trick wrote:
I was tying to use nodeType to make sure that a node was an element in
my javascript, but it wasn't working. Then when I did
alert(aNode.nodeType); I got undefined, I was really confused so I
tried alert(document.nodeType); and I got undefined
On Fri, 11 Mar 2005 14:03:19 -, Nick Gleitzman [EMAIL PROTECTED]
wrote:
Is it just me, or is this list turning into javascriptgroup.org?
HTML and CSS aren't the only web standards. DOM and ECMAScript are too.
--
regards, Kornel Lesiski
**
I was tying to use nodeType to make sure that a node was an element in
my javascript, but it wasn't working. Then when I did
alert(aNode.nodeType); I got undefined, I was really confused so I
tried alert(document.nodeType); and I got undefined again! Is there a
reason I'm getting undefined
I don't know what the problem was, but I copied Gez's code and it
started working, O:-) . Possibly just a spelling error or a missing a '
or one = instead of two.
Thanks,
Alan
Ben Curtis wrote:
I was tying to use nodeType to make sure that a node was an element
in my javascript, but it wasn't