473,473 Members | 1,571 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

JavaScript API??

JS
Is there an API for JavaScript like for normal Java? I would like to which
methods it possible to call on a "document" object as an example.
Jul 23 '05 #1
9 1354

"JS" <dsa.@asdf.com> wrote in message news:d7**********@news.net.uni-c.dk...
Is there an API for JavaScript like for normal Java? I would like to which
methods it possible to call on a "document" object as an example.


there's a good reference here
www.devguru.com

Jul 23 '05 #2
DKM


JS wrote:
"DKM" <de**************@hotmail.com> skrev i en meddelelse
news:11**********************@g44g2000cwa.googlegr oups.com...


JS wrote:
Is there an API for JavaScript like for normal Java? I would like to which methods it possible to call on a "document" object as an example.


You may be thinking about the various interfaces exposed by the DOM.
You can view them here

http://www.w3.org/TR/REC-DOM-Level-1...-one-html.html

Thats for DOM1. Then you have the newer DOM2 and DOM3.

Hmm could not find anything on the "onChanged" method and the "onload"
variable. These are just some of the build in fuctions that I stumple over
all the time and have no idea on where to find more info on.

Where should I search to find a description on all these functions and
variables??


Sorry about that. Try here:

http://www.mozilla.org/docs/dom/domref/

D.K. Mishra

Jul 23 '05 #3
JS

"DKM" <de**************@hotmail.com> skrev i en meddelelse
news:11**********************@g49g2000cwa.googlegr oups.com...


JS wrote:
"DKM" <de**************@hotmail.com> skrev i en meddelelse
news:11**********************@g44g2000cwa.googlegr oups.com...


JS wrote:
> Is there an API for JavaScript like for normal Java? I would like to

which
> methods it possible to call on a "document" object as an example.

You may be thinking about the various interfaces exposed by the DOM.
You can view them here

http://www.w3.org/TR/REC-DOM-Level-1...-one-html.html

Thats for DOM1. Then you have the newer DOM2 and DOM3.

Hmm could not find anything on the "onChanged" method and the "onload"
variable. These are just some of the build in fuctions that I stumple over all the time and have no idea on where to find more info on.

Where should I search to find a description on all these functions and
variables??


Sorry about that. Try here:

http://www.mozilla.org/docs/dom/domref/

This is the thing that I was looking for:

http://msdn.microsoft.com/library/de...ence_entry.asp
Jul 23 '05 #4
Dnia Thu, 26 May 2005 23:15:52 +0200, JS napisał(a):
http://www.mozilla.org/docs/dom/domref/
This is the thing that I was looking for:

http://msdn.microsoft.com/library/de...ence_entry.asp


If you want your applications/webpages to work both in standards-aware
browsers (Gecko-based and Opera) and Internet Explorer, you actually need
both links.

--
Deep abysses I sink into and behind the light I go| http://apcoln.linuxpl.org
Now playing: Nothing | http://biznes.linux.pl
--------------------------------------------------| http://www.juanperon.info
JID: Ar**********@jabber.org | http://www.naszedzieci.org

Jul 23 '05 #5
JS wrote:
[...]


This is the thing that I was looking for:

http://msdn.microsoft.com/library/de...ence_entry.asp


Be careful, *always* read the standards information at the bottom of
the page.

The following are my interpretations of the more common statements:

1. Reference to a W3C standard - good to use with appropriate
feature testing.

2. "DOM Level 0", which means essentially legacy support, so likely
well supported but may be depreciated or less well supported in
future.

3. "There is no public standard..." - a Microsoft invention that may or
may not be supported by some other browsers. Use with caution, test
thoroughly and provide an alternative (e.g. innerHTML, innerText).

4. "This ... is a Microsoft extension to ... " - probably will only
work in IE, but there may be alternatives for other browsers.
e.g. XML Element or xml Object
Others may have some to add or different views...
--
Rob
Jul 23 '05 #6
RobG wrote:
JS wrote: <snip> 2. "DOM Level 0", which means essentially legacy support,
so likely well supported but may be depreciated or less
well supported in future.

<snip>

It is unlikely that HTML browsers will drop support for 'DOM Level 0' as
the features are so widely used at present that any new browser that
does not implement them will appear to be broken with much of the
Internet. Which would make them unattractive to users. And there are
moves to formally standardise much of what is considered 'DOM level 0'.

Richard.
Jul 23 '05 #7
On 27/05/2005 05:28, RobG wrote:

[Microsoft documentation]
1. Reference to a W3C standard - good to use with appropriate
feature testing.


Be careful here. There is more than one occasion where Microsoft have
implemented a W3C-defined property, referenced the standard (usually a
draft, not the recommendation), but entirely failed to follow the
definition (or exhibit additional, undocumented behaviour that defies
that definition).

If you really want to use a standardised property that you're not
familiar with, always compare the official version against Microsoft's.

Two obvious examples are the document.getElementById and
HTMLSelectElement.add methods. The former will return a named element if
it cannot find an element with a matching id (undocumented), and the
latter has a fundamentally different signature. There are others, but I
can't think of them at the moment.

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #8
Richard Cornford wrote:
It is unlikely that HTML browsers will drop support for 'DOM Level 0'
as e features are so widely used at present that any new browser that
does not implement them will appear to be broken with much of the
Internet. Which would make them unattractive to users. And there are
moves to formally standardise much of what is considered 'DOM level 0'.


URL?

BTW: DOM Level (1 and) 2 HTML already standardize parts of DOM Level 0.
PointedEars
Jul 23 '05 #9
Hal Rosser wrote:
there's a good reference here
www.devguru.com


No, you have been cheated on. For example, alert() was never
specified in ECMA-262 and is not specified in its current edition.
PointedEars
Jul 23 '05 #10

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

Similar topics

0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.