/    Sign up×
Community /Pin to ProfileBookmark

where is the list of JavaScript objects?

Hi,

[url]http://www.w3schools.com/js/default.asp[/url]

I originally though all the objects I could use in javascript are all listed in above link. Then I realize that some other objects, such as xmlhttprequest, are not. Where could I find the complete list of objects that could be used in javascript?

Thx
Tao

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@ZeroKilledJan 08.2008 — hope those link help you

the javascript core reference, list all object that are suppposed to work on every technology that implement javascript

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

object defined by the DOM, they don't list all of them but you can start there. the DOM is specialed designed for browser and not every browser support the DOM as is, so, be careful (specially with msie browsers).

http://www.w3schools.com/htmldom/dom_reference.asp

a theorical guide about javascript, explain much aspect about javascript

http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide
Copy linkTweet thisAlerts:
@taowangauthorJan 09.2008 — Thanks for the links. They are helpful.

As for DOM, do you know what objects are supported by most of browser? I check your link and found there are three kinds of DOM: core, XML, and HTML DOM. Is core all supported?

Thx

Tao
Copy linkTweet thisAlerts:
@ZeroKilledJan 09.2008 — i will answer you based on my knowlegde. if i'm wrong, please, anyone correct me.

DOM object support might depend on browser itself and the version of DOM that support. if you had read the introduction you will understand me. http://www.w3schools.com/htmldom/dom_intro.asp

is likely that modern browser support the lowest level of DOM but that isn't always true. for example, DOM Core level 1 define object [B]Document[/B] and has a method named [B]createCDATASection[/B]. on firefox this method is supported (however, you can't use on a HTML document, instead on XML document), but on lastest version of msie (msie = microsoft internet explorer) it isn't supported. that means you can't rely only on supported object because browser can support them partially. that why common practice check for support on object and method instead of browser's version and vendor.

on the web there are articles that detail almost all object that support each modern browser, and sometimes a workaround for those that doesn't support a specific object or method. however, on one of mentioned link they list the common DOM object (http://www.w3schools.com/htmldom/dom_reference.asp). if you follow the link you will see the container of that object and at the most right column a list of which browser support that specific item (object, property or method).

also you can check more about the DOM on W3C's technical report, althought those report are more aimed for browsers engineer (as i understand because is too technical) that want to support those standard. or, worth it to mention, read a book about javascript and the DOM as [B]Javascript: The Definitive Guide[/B] which i highly recommend.
×

Success!

Help @taowang spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.30,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...