Re: const and IE6

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Trevor L. wrote:
>> What is strange about objecting to IE-only extensions of W3C
>> standards? You should be thankful that you get such warnings,
>> as they will help you to write better code.
>
> I suppose there is nothing strange. But, as above, how does
> one know what is IE only?

For starters, know where the specifications are. You can use most of CSS 2
with pretty decent conformance all-around:
http://www.w3.org/TR/CSS21/

With regard to cursor, look here:
http://www.w3.org/TR/CSS21/ui.html#propdef-cursor

Compare those with these:
http://msdn.microsoft.com/workshop/author/css/reference/attributes.asp
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/cursor.asp

Now, cursor:hand presents more of a problem than most things, because the MS
documentation generally does not explain the *little* ways in which IE
departs from standards.

It is better when IE departs in a big way. Take a look here:
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/clientheight.asp

This comes with a disclaimer:

Standards Information
There is no public standard that applies to this method.


> My overall response to the console I guess, is:
> Great, there is a error.
> But, what is the correct syntax?

Generally speaking, if the console does not tell you the specific line and
column, you have a parsing error, such as failing to close an open brace.
Otherwise, I find the console messages pretty straigtforward.

Consider your website. When I visit it, I get one JS error:

Error:
document.getElementById(id).contentWindow.document.getElementById(tname) has
no properties
Source File: http://tandcl.homemail.com.au/scripts/external.js
Line: 266

The line in question reads:

var newheight =
document.getElementById(id).contentWindow.document.getElementById(tname).clientHeight

Because of operator precedence**, I know that JS understands everything up
to here:

document.getElementById(id).contentWindow.document.getElementById(tname)_

In other words, document.getElementById(id) returned an object with a
property called "contentWindow", which referred to an object with property
"document", which had a method named "getElementById". If any of those had
failed, your message would have reflected that fact. Since it did not, I
know that getElementById(tname) was called, but the thing returned did not
have a property called "clientHeight", probably because it returned null or
because the uniqueness constraint on ID was violated:

getElementById introduced in DOM Level 2
Returns the Element whose ID is given by elementId. If no such
element exists,
returns null. Behavior is not defined if more than one element has
this ID.

http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-getElBId

> Can you or anyone else suggest the best place to determine what is
> correct, standrad code?
> I use w3schools, but if there are others I would appreciate finding
> out what they are.

I use these MS references:
HTML/DOM/CSS:
http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_entry.asp
JScript:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/29f83a2c-48c5-49e2-9ae0-7371d2cda2ff.asp

In addition, I use these W3C references:
HTML 4.01: http://www.w3.org/TR/html4
XHTML 1.1: http://www.w3.org/TR/xhtml11
DOM (mostly 1 and 2): http://www.w3.org/DOM/DOMTR
CSS 2.1: http://www.w3.org/TR/CSS21/


**http://msdn.microsoft.com/library/en-us/script56/html/cf3c510a-2214-4b47-b8fe-3521298efaab.asp


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.


.



Relevant Pages

  • Re: JS for generating Email
    ... I use IE6 as the browser, and this code opens up Outlook Express ... If there are no standards, then I guess I just have to grin and bear it ... > Unsolicited commercial email will be read at a cost of $500 per message. ... > your question is worth asking, ...
    (microsoft.public.scripting.jscript)
  • Re: Browsers browsers
    ... >> with existing external standards; ... conformance. ... Unsolicited commercial email will be read at a cost of $500 per message. ... question is worth asking, it's worth posting. ...
    (microsoft.public.scripting.jscript)
  • Re: Save console buffers
    ... The C standards don't have any idea what a "console" is, ... so you are almost certainly asking in the wrong newsgroup. ... about which aspects of the console state you wish to get. ...
    (comp.lang.c)
  • Re: ATI on FreeBSD! FireGL Linux Driver Port
    ... > Seems to work fine with my X800 Pro. ... except when you want to go back to text console and the video gets ... "The nice thing about standards is that there ... -- Andrew Tanenbaum ...
    (freebsd-current)
  • Re: Save console buffers
    ... The C standards don't have any idea what a "console" is, ... so you are almost certainly asking in the wrong newsgroup. ... about which aspects of the console state you wish to get. ...
    (comp.lang.c)