473,652 Members | 2,965 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1528
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.or g/wiki/ECMAScript>

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.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
1853
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 assumed he meant apart from versions) "because there's different functions". I didn't agree because I think that's because of different DOM's. I know that for example IE 5.0 (or 5.5?) does not support array.push() (and a
12
2170
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
2770
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. Is there an alternative syntax I can use that is standardised in ECMAScript and also (preferably) interoperably implemented in several browsers? Or, do I have to use ordinary getFoo() and setFoo() functions.
12
2315
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 typed variables. Thanks, Mark
2
1248
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: http://www.mozilla.org/js/language/es4/index.html , http://msdn.microsoft.com/voices/scripting07142000.asp or from microsoft.public.dotnet.languages.jscript </old>
4
1483
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 for. I let the user of my text editor search using regular expressions and do not know if I should set that option or not. What would seem the most natural for him, set or not set?
34
2982
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 should be JavaScript. So I'm asking: what should I use in the FAQ? Technically, 'JavaScript' is Mozilla's implementation of Ecma-262.
4
1751
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - What is ECMAScript? ----------------------------------------------------------------------- ECMAScript is the international standard for JavaScript. JScript 3.0 and JavaScript 1.5 are more or less ECMAScript compliant. In addition ECMA 327 defines the Compact Profile of ECMAScript by describing the features from ECMA 262 that may be omitted in some...
5
1510
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 name of the language and ECMAScript is the title of the standards document). Can someone clue me in? And why don't we follow standards and write EcmaScript?
0
8370
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8704
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8470
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6160
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5620
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4147
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2707
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 we have to send another system
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.