Javascript 1.3

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jim Ley

    #16
    Re: Javascript 1.3

    On Fri, 16 Apr 2004 13:07:38 -0500, "Matt Kruse"
    <newsgroups@mat tkruse.com> wrote:
    [color=blue]
    >Same think with try/catch, or any other keyword additions and language
    >changes in different versions.
    >If you're developing for an internet audience, you can't use any of these
    >new features, because there is no way (that I've found) to degrade nicely,
    >without relying on language="Javas cript1.3", etc.[/color]

    but that's never been a reliable solution anyway, it was ignored by
    too many of the old browsers - the ones we need to protect.
    [color=blue]
    >Causing a syntax error while determining whether or not an operator is
    >supported (as another poster suggested) isn't really a good solution, IMO.[/color]

    Absolutely, that's definately unacceptable, I wouldn't use ===, it's
    one of things I disagree with jslint on.

    Jim.
    --
    comp.lang.javas cript FAQ - http://jibbering.com/faq/

    Comment

    • Dr John Stockton

      #17
      Re: Javascript 1.3

      JRS: In article <c5rar7$ru5$1$8 302bc10@news.de mon.co.uk>, seen in
      news:comp.lang. javascript, Richard Cornford
      <Richard@litote s.demon.co.uk> posted at Sat, 17 Apr 2004 14:18:30 :
      [color=blue]
      >Out of curiosity, what sort of output do you get from the following:-
      >
      >var out = 'No ScriptEngine Funciton';
      >if(window.Scri ptEngine){
      > out = ScriptEngine();
      > if(window.Scrip tEngineMajorVer sion){
      > out += ' '+ScriptEngineM ajorVersion();
      > }
      > if(window.Scrip tEngineMinorVer sion){
      > out += '.'+ScriptEngin eMinorVersion() ;
      > }
      > if(window.Scrip tEngineBuildVer sion){
      > out += '.'+ScriptEngin eBuildVersion() ;
      > }
      >}
      >alert(out);[/color]

      It's easier for me without the alert - that is equivalent to

      out = "JScript 3.1.2124"

      on my system.

      --
      © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
      <URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
      <URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
      <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

      Comment

      Working...