473,402 Members | 2,064 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Why is Image not documented as a Global Object?

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...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.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Jun 7 '07 #1
4 1388

-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...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/ma...S13/image.html

or

http://www.w3.org/TR/DOM-Level-2-HTM...ml#ID-17701901
http://www.w3.org/TR/DOM-Level-2-Cor...t-binding.html

Jun 7 '07 #2
Roy A. wrote:
-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...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/ma...S13/image.html

or

http://www.w3.org/TR/DOM-Level-2-HTM...ml#ID-17701901
http://www.w3.org/TR/DOM-Level-2-Cor...t-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.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Jun 7 '07 #3
On Jun 8, 1:05 am, -Lost <maventheextrawo...@techie.comwrote:
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...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..._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/lib.../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-HTM...ml#ID-75708506 >

images:
<URL: http://www.w3.org/TR/DOM-Level-2-HTM...ml#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.
--
Rob

Jun 7 '07 #4
RobG wrote:
On Jun 8, 1:05 am, -Lost <maventheextrawo...@techie.comwrote:
>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...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..._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/lib.../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-HTM...ml#ID-75708506 >

images:
<URL: http://www.w3.org/TR/DOM-Level-2-HTM...ml#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!

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Jun 8 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
9
by: Karl Burrows | last post by:
I am working on a Website for a non-profit group and for some reason I have one link that doesn't want to cooperate. All the image links work fine with the onmouseover and onmouseout script except...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
3
by: deko | last post by:
I have a Windows Forms app that connects to an Access database. One of the tables in the database contains a bunch of pictures stored in OLE Object fields. What I need to do is extract those...
3
by: Kristof Thys | last post by:
Hello, I'm writing a ASP.net webservice wich will visualize an image, generated by another application. The generated image is a char*. I can transform this to a String*, but I want to view it...
3
by: jon | last post by:
Hello, I've had long standing code that runs in IE, that I'm testing with firefox unsuccessfully now. The problem seems to be that images that I dynamically create don't fire their onload event...
49
by: comp.lang.php | last post by:
/** * Class for grayscaling image * * @author Phil Powell * @version 1.2.1 * @package IMAGE_CATALOG::IMAGE */ class ImageGrayscaleGenerator extends ImageResizeComponents { /
6
by: Janwillem Borleffs | last post by:
Tuxedo schreef: You can check the Image.complete property; example: img = new Image(100,100); interval = setInterval('checkcomplete()', 100); img.src = 'someimg'; function checkcomplete()...
7
by: howardk | last post by:
I'm writing some code that loads a number of images, using the standard mechanism of assigning a src url to a newly constructed Image object, thus invoking the image-load operation. On a successful...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.