Why is Image not documented as a Global Object?

L

-Lost

Why is Image not mentioned anywhere as a global object? Or at least as
one of JavaScript's native objects?

http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects

I cannot find any information of it at the Gecko pages nor did I find
any in depth reference at MSDN.

http://msdn2.microsoft.com/en-us/library/htbw4ywd.aspx
http://msdn2.microsoft.com/en-us/library/ms533050.aspx

Granted, the MSDN site makes me sick, so I did not search long. I never
know if I should be reading the JScript reference, the DHTML reference
or what.

The *only* mention of it I found was at the Gecko pages, but it was an
article on the use of the CANVAS element.
 
R

Roy A.

-Lost skrev:
Why is Image not mentioned anywhere as a global object? Or at least as
one of JavaScript's native objects?

http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects

Because it's not a core object. You can use JavaScript in different
environment. If you're scripting against an Image object, in a HTML
document, on the client-side, you can look at these links:

http://hal.ific.uv.es/informatica/manuales/ClientReferenceJS13/image.html

or

http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-17701901
http://www.w3.org/TR/DOM-Level-2-Core/ecma-script-binding.html
 
L

-Lost

Roy said:
-Lost skrev:

Because it's not a core object. You can use JavaScript in different
environment. If you're scripting against an Image object, in a HTML
document, on the client-side, you can look at these links:

http://hal.ific.uv.es/informatica/manuales/ClientReferenceJS13/image.html

or

http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-17701901
http://www.w3.org/TR/DOM-Level-2-Core/ecma-script-binding.html

Hrmm... that may be so, but I still find it odd that it would not make
front page with the rest of the objects.

Especially considering one of the above links mentions that when a
document is created (or loaded, I forget which) that intrinsically it
creates new Image objects to store each image and then returns them in
the images collection.

Ah well. Thanks for the information.
 
R

RobG

Why is Image not mentioned anywhere as a global object? Or at least as
one of JavaScript's native objects?

http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Gl...

That is the Mozilla reference for their javascript language (i.e. the
Mozilla implementation of ECMAScript Language), which does not have an
Image object. The Gecko DOM reference is here:

<URL; http://developer.mozilla.org/en/docs/Gecko_DOM_Reference >

However, it is not maintained by the Mozilla or Firefox development
teams. It is maintained as a community effort by anyone who wants to
help and, while quite useful, is incomplete. It doesn't mention
HTMLImageElement because no one has added it - feel free to sign up
and start helping. :)

I cannot find any information of it at the Gecko pages nor did I find
any in depth reference at MSDN.

See above.
http://msdn2.microsoft.com/en-us/li...dn2.microsoft.com/en-us/library/ms533050.aspx

Granted, the MSDN site makes me sick, so I did not search long. I never
know if I should be reading the JScript reference, the DHTML reference
or what.

The *only* mention of it I found was at the Gecko pages, but it was an
article on the use of the CANVAS element.

The HTMLImageElement interface is listed along with all the other
HTML DOM objects in the W3C DOM HTML specification, as is the images
collection:

Collections:
<URL: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-75708506 >

images:
<URL: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-90379117 >

The index is a great place to start when looking for things, as are
the elements and properties sections of the HTML and CSS
specifications.
 
L

-Lost

RobG said:
That is the Mozilla reference for their javascript language (i.e. the
Mozilla implementation of ECMAScript Language), which does not have an
Image object. The Gecko DOM reference is here:

<URL; http://developer.mozilla.org/en/docs/Gecko_DOM_Reference >

However, it is not maintained by the Mozilla or Firefox development
teams. It is maintained as a community effort by anyone who wants to
help and, while quite useful, is incomplete. It doesn't mention
HTMLImageElement because no one has added it - feel free to sign up
and start helping. :)



See above.


The HTMLImageElement interface is listed along with all the other
HTML DOM objects in the W3C DOM HTML specification, as is the images
collection:

Collections:
<URL: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-75708506 >

images:
<URL: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-90379117 >

The index is a great place to start when looking for things, as are
the elements and properties sections of the HTML and CSS
specifications.

Aaaah, there we have it.

Thanks loads!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,160
Messages
2,570,890
Members
47,423
Latest member
henerygril

Latest Threads

Top