...

View Full Version : Javascript and Apple Macintosh



Philip M
03-26-2003, 07:16 AM
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."

liorean
03-26-2003, 08:57 AM
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.)

brothercake
03-26-2003, 10:32 AM
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.

liorean
03-26-2003, 10:38 AM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum