473,326 Members | 2,815 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,326 software developers and data experts.

Clarify me on this issue - ECMAscript

Hi,

I am one of the many that get fed up with browser sniffing and cross
platform issues. Is ECMAscript a new independant cross platform
specification that can do loads of nice things that JavaScript can do?
If so, is it well supported?

If someone could give me brief overview of this that would be great,
thanks

Burnsy

Aug 18 '05 #1
2 1508
bi******@yahoo.co.uk writes:
I am one of the many that get fed up with browser sniffing and cross
platform issues.
Agree on browser sniffing, but cross platform issues are inherent in a
heterogenic environment, which anything targeting "browsers" need to
account for.
Is ECMAscript a new independant cross platform
specification that can do loads of nice things that JavaScript can do?
ECMAScript is a standard specifying a language that incorporates
features from earlier versions of Netscape's JavaScript (Core) and
Microsoft's JScript. Later versions of these are ECMAScript compliant
(except for the odd bug).

It is not exactly new. The third version of ECMAScript was
standardized in 1999.

It is *only* the language, not the environment, that is standardized,
so all DOM features are not there. These are standardized by W3C in
the DOM 2 specifications, and there is still a core of de-factor
standard features that browsers implement without an official standard
specifying them.

That's also the features that differs mmost between platforms, so
ECMAScript won't help you there.
If so, is it well supported?
Not so, but very well supported :)
If someone could give me brief overview of this that would be great,
thanks


<URL:http://en.wikipedia.org/wiki/ECMAScript>

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Aug 18 '05 #2


bi******@yahoo.co.uk wrote:
Is ECMAscript a new independant cross platform
specification that can do loads of nice things that JavaScript can do?


ECMAScript is nothing new, the latest edition of that standard is
edition 3 which was published in 1999.

It is a standardization of the core language (e.g. the types like
number, string, boolean, object, the operators like +, -, *, typeof
delete, the expressions, the native objects like Object, Function, Date,
Array, String, Number, Boolean, RegExp, Error, the statements like
if/else, while) a scripting engine like the (former Netscape now
Mozilla) Spidermonkey engine or the MS JScript engine implements.

At the time of publication the 3rd edition contained some features (like
try/catch/finally exception handling) not yet or not yet completely
implemented but for some years now the latest versions of the
implementations (JavaScript 1.5, JScript 5.5 and 5.6, Opera's engine
since at least Opera 7) are trying to implement that edition completely.

As for scripting in the browser that standard of course helps achieving
compatible behavior for the stuff mentioned above that it covers, but
that is as you can see not anything browser related. And for quite some
time on the web you had (or depending on your views you still have) to
deal with various browsers (for instance like Netscape 4) which do not
implement the complete language like try/catch and throw syntax errors
on such statements so you could (or still can) not simply rely on things
in the standard and use them.

In regards to web scripting (of HTML documents and XML documents) what
is more important than the ECMAScript specification is the W3C DOM
specification <http://www.w3.org/DOM/DOMTR#dom2>, it specifies its
objects respectively interfaces and properties and methods in an IDL, in
a Java binding, and in an ECMAScript binding.

But that specification has three levels and the three levels have
different modules finished between 1998 and 2004, if you look at the age
of IE 6, the currently latest IE version on Windows, it becomes clear
that you cannot simply rely on the W3C DOM specification to write cross
browser compatible scripts.

IE is certainly the greatest problem as its DOM implementation has grown
from the not W3C compatible IE 4 DOM and then it seems the W3C DOM has
been implemented on top of that where it was easy or seen more useful.
So with IE you can often experience the surprise that a core DOM method
like appendChild works on some elements or with some argument but not
with others. In such cases there are often ways using the IE DOM to
achieve what you want but then you have to fork and write one branch of
code using the W3C DOM stuff and another using the IE DOM stuff.

On the other hand of the other current browsers like Mozilla, Opera,
Safari, Konqueror only Mozilla for some time had the high goal to
implement the W3C DOM first and only while Opera for instance as far as
I see it always tried to be compatible to both the W3C DOM and the IE DOM.
By now you will find a wide spread use of a mixture of the W3C DOM (for
instance createElement) and the IE DOM (for instance innerHTML).

So there is no short and simple answer, it certainly helps to read the
W3C DOM standards and learn to understand what that standard then means
in an ECMAScript implementation but you will still need to learn the
particular implementations in different browsers.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Aug 18 '05 #3

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

Similar topics

31
by: manno | last post by:
Hi all, more or less just out of curiosity... I had a short 'discussion' about JavaScript in different borwsers. The other guy said that there's differeces in JavaScript accross browsers (I...
12
by: Ali | last post by:
I have the following web page with a script in it. <html> <head> <title>Make Your Own Objects test</title> <script>
2
by: Lachlan Hunt | last post by:
Hi, In JavaScript 1.5, objects can use special getter and setter functions for properties. However, these only seem to be implemented in Gecko and, AFAICT, don't seem to be part of ECMAScript. ...
12
by: Simula | last post by:
Hello All, Does anyone have any knowledge of when version 4 will be released? I think that version 3 was finalized in 1999 and it would be really nice to have the class keyword and statically...
2
by: VK | last post by:
2.12 What does the future hold for ECMAScript? <old> The fourth edition of ECMAScript will provide new features like typed variables, and classes. More information can be found at:...
4
by: Academia | last post by:
Regex class has the option ECMAScript which can set. I searched the Internet and got about a million hits that reference ECMAScript but none that defined it. Can you tell me what it is used...
34
by: dhtml | last post by:
I made a change to the FAQ of javascript to EcmaScript. I got some feedback that the newsgroup is CLJ and the language is commonly referred to as JavaScript. Therefore, the word in the FAQ...
4
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - What is ECMAScript? ----------------------------------------------------------------------- ECMAScript is the...
5
by: Martin Rinehart | last post by:
Within this group many use ECMAScript as the name of the language, JavaScript as the name of Mozilla's implementation. I see zero support for this usage outside this group (where JavaScript is the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.