• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is Javascript1.5 supported by IE6

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 409
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
reply
    Bookmark Topic Watch Topic
  • New Topic