List Info

Thread: Re: var contains to data; but why?




Re: var contains to data; but why?
country flaguser name
Sweden
2008-03-26 01:47:46


> Re: var contains to data; but why?
>; Posted by: "Gail Issen"; gissen%40sbcglobal.net">gissensbcglobal.net gail6868
> Date: Mon Mar 24, 2008 2:42 pm ((PDT))
>
> I may be wrong . I'm also a JavaScript newbie. But, I noticed that you have
>; an xhtml doctype. However, you have html code. Try putting all your code in
> lowercase letters. That is, instead of document.getElementById("koko") have
>; document.getelementbyid("koko"). Also, you must be totally consistent in
> your capitalization.

All JavaScript identifiers - including method names - are case sensitive. The
doctype of the page it's used in makes no difference in this regard.

The DOM method is getElementById() - if you use it with any other capitalisation
such as getelementbyid() or GetElementByID(), it will be treated as a different
method and will almost certainly produce errors. Unless, of course, you've
defined a method with one of those names.

cheers

jon.

>
>

--
This message has not been scanned for viruses.

Since I do not use a Microsoft operating
system or software, and use only plaintext
for email, there is little need for me to do so.

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )