Re: FAQ Topic - What online resources are available? (2009-01-29)



On Jan 30, 3:44 am, Garrett Smith <dhtmlkitc...@xxxxxxxxx> wrote:

I've seen far to often, "it doesn't matter if its valid" coupled with
"it doesn't work in this browser."

Yes you're right, I agree. But a missing type="text/javascript" (or
whatever it should be) in a script, won't render your .html any less
valid. You can still validate at the w3.org validator until the only
remaining warning is the missing type in the script tag. And what
Crockford says is that that won't actually be a problem in any
browser.

(...)

| These collections are still available in the browsers (um). They're
| not in any standard, but ah they're obsolete now. They're uh, as we'll
| see, more modern alternatives to all of these things. So these are
| pretty much irrelevant now. I recommend you not use them.

DOM 1 defined these, so they're in a standard. I don't understand why he
recommends not to use these.

Because they've been inherited from ancient times (from DOM0, from
before even the w3c) ?

Is that what you think Doug's reason is or is that your reason?

It's usually better to apply the search to the container, which is not
neccesarily the whole <body>. So container.getElementsByTagName('img')
is usually much more convenient than document.images.

Clearly, these are standard; though Doug says that they're not. That is
just plain wrong.

Yes it is. Plain wrong. But you're overlooking the other 99.9% of
content. There's certainly 99.9% of valid excellent content in those
videos, vs. a 0.1% that's arguable, or a matter of tastes.

That's not correct. Instead, getElementsByName(name) returns a
*NodeList* of *Elements* whose name matches the name argument. Except in
IE < 8 which confuses ID and NAME (a common bug that most regulars are
well aware of).

Very much array-like, in short. It's not an everything-and-all-about-
the-DOM video.

The term 'array' was used to mean something that is not a javascript
Array. I think this can be misleading.


For a beginner (and this is a learning tool), a "nodelist" is much
more misleading that an "array". A beginner will have plenty of time
to learn that collections are array-like rather than actual arrays.


(...)
It's all good until the last sentence; the whitespace is necessary and
not having it causes bugs in IE.

So M$ ought to fix IE once and for all.

Would be nice.

Certainly :-)

All the time I have for now.

I can't recommend that.

All of them are excellent learning tools. See them all.

I have watched most of the others before and did not find much useful
information. I think remember there was one video with a
weird/inefficient regex for String.prototype.trim, one with the power
constructor.

That falls into the arguable mere 0.1%.

The one I reviewed just now was new to me; I just pushed play and typed
my reactions; no planning or tough scrutinizing. I don't think I was
overly critical or negative.


Garret, come on, don't be so hard-headed and include them in the
"online resources" faq-listing. They're ~100% excellent.

--
Jorge.
.



Relevant Pages

  • Re: Dynamic loading of javascript files into web pages
    ... function forEach(array, action) { ... function loader_(array) { ... The above script shouldn't be speeding up the process of loading ... Neither browser tells me what the problem is but I just wanted to ...
    (comp.lang.javascript)
  • Re: http://news.bbc.co.uk/ problem
    ... I'd guess that the DIV is supposed to get ... I'm using Firefox with script disabled and 3rd-party ... it's a matter of browser version. ... It's almost as if there is a banner ad in this position that my browser ...
    (microsoft.public.windowsxp.general)
  • Re: [PHP] php exec()
    ... i change the script to: ... the output from browser: ... can i conclude php program is not a problem here? ...
    (php.general)
  • Re: Logon script - function array and select case not working
    ... this all works well, except, the function i am using for the rules in the control script causes alot of querrys to AD. as there are alot of groups. ... objTSout.writeline retrv ... So if you think that this will assign an array value to the variable, how do you think the case select statement is going go compare this array value with the literal string values such as "group name here"? ... However, by not assigning ANY value to checkgrp in the function, you are guaranteeing that, should the function ever exit, it will return no information. ...
    (microsoft.public.scripting.vbscript)
  • Re: string retrieval issue
    ... Chicago Bears|NFC North ... not writing the third element back to the array). ... You didn't include it in your script. ... Fear is the mind-killer. ...
    (comp.lang.perl.misc)

Loading