aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Is Javascript1.5 supported by IE6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Is Javascript1.5 supported by IE6" Watch "Is Javascript1.5 supported by IE6" New topic
Author

Is Javascript1.5 supported by IE6

shilpa thakare
Greenhorn

Joined: Feb 21, 2007
Posts: 11
Hello All,

Sorry if I am repeating the question!

Actually I want to ask it differently now!

I know that language attribute i.e language="javascript1.5"
is not supported by IE
Well, I've tried one scripting feature of Javascript1.5, which is
methods like Number.toFixed(x) and Nubmer.toPrecision(x).
They worked in IE6.

BUT another feature for eg. multiple catch block for single
try block is not supported in IE6. (the same one supported by Mozilla).

I am not able to figure it out completely from net/books.
I think and I am sure I'll get perfect answers from some
experienced people over here.

I am not doing any of the javascript coding.
But you can think my product will parse each javascript token
and identify its function.
Most recommended browser for customer is IE6.

Thanks,
Shilpa
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

I am not a pro but I think that IE uses its own implementation called JScript.
IE6 supports JScript5.6, which is about the same as Javascript 1.5 (meaning not completely the same)

As you said, there can be only one catch block in JScript 5.6.

You can find a complete reference here :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/29f83a2c-48c5-49e2-9ae0-7371d2cda2ff.asp


[My Blog]
All roads lead to JavaRanch
Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 396
I ran a script the other day in IE7, that responded it supports 1.3. A little complicated I suppose, since Microsoft has JScript. In case it's any help, here's the script:


<html><head>
<script type="text/javascript">
var jsver = 1.0;
</script>
<script language="Javascript1.1">
jsver = 1.1;
</script>
<script language="Javascript1.2">
jsver = 1.2;
</script>
<script language="Javascript1.3">
jsver = 1.3;
</script>
<script language="Javascript1.4">
jsver = 1.4;
</script>
<script language="Javascript1.5">
jsver = 1.5;
</script>
<script language="Javascript1.6">
jsver = 1.6;
</script>
<script type="text/javascript">
document.write('<p><b>Javascript version ' + jsver
+ ' supported<\/b><\/p>');
</script>
</head>
<body>
</body>
</html>


Correlation does not prove causality.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is Javascript1.5 supported by IE6