Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,909
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts

    Javascript and Apple Macintosh

    I have discovered that Javascript seems to not be implemented fully (or at all)? in IE5 used with Apple computers, or possibly my syntax is not correct. Please can anyone point me towards a source of information on exactly how/what features of Javascript do not work properly with a Mac, and how to overcome this? I am aware that Netscape is picky but I believe that my on-line order form works properly in that.

    Advice from the knowledgeable would be appreciated.

    Or is it simply that Javascrpt is not automatically implemented/ enabled in a Mac? I have found the following:-

    "To run JavaScript from Mac OS, you must first download the OSA component from Late Night Software's JavaScript OSA page. The web page includes instructions for installing the JavaScript OSA on Mac OS 8, 9, and X. After you have installed it, launch the Apple Script Editor application and choose "JavaScript" from the language menu in the bottom left of the Script Editor window."
    Last edited by Philip M; 03-26-2003 at 07:43 AM.

  • #2
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    That's more like the equivalent of the windows scripting host, not the javascript that exists inside your browser.

    The JavaScript in ie5m is on par with ie5w when it comes to ecma compliancy, but more like ie6w (only better) when it comes to stylesheets and the DOM. It also lacks a good lot of the ActiveX/LiveConnect/xpconnect functionality that iew/nn/moz sports, and doesn't have an xml parser.

    (This means Array.push, Array.pop, Array.shift, Array.unshift, Array.splice are lacking, among other things.)
    Last edited by liorean; 03-26-2003 at 10:39 AM.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It also supports a couple of things that win/ie5 doesn't support, such as the document.implementation object, and getElementsByTagName('*');

    Generally, mac/ie5 is stricter, and more standards compliant, than win/ie5. If you want to get something working, probably the best thing to do is not treat is comparable with its windows equivalent, but as a compliant browser which behaves more like mozilla or safari.

    I've mostly found that things which work in those two also work in mac/ie5, but win/ie5 proprietary scripting does not.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #4
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Originally posted by brothercake
    It also supports a couple of things that win/ie5 doesn't support, such as the document.implementation object, and getElementsByTagName('*');
    As I said, it's only the ecmascript part that is ie5w level - the dom and stylesheet is ie6w level.

    Generally, mac/ie5 is stricter, and more standards compliant, than win/ie5. If you want to get something working, probably the best thing to do is not treat is comparable with its windows equivalent, but as a compliant browser which behaves more like mozilla or safari.
    Yes, that's very true. It for one has correct handling of fixed positioning, fixed backgrounds, correct box model... but then, that's not javascript, is it?

    I've mostly found that things which work in those two also work in mac/ie5, but win/ie5 proprietary scripting does not.
    Well, it's like a hybrid. Some things - like events - it does the iew way, while on for example css rendering and dom, it's closer to moz/op7 - or rather, w3c.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •