Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: javascript and Mac OS



Am Sonntag, 24.08.03 um 17:01 Uhr schrieb Harald Walker:

Mirko wrote:

(...)
..so who know if exist the same code but working under Mac OS ?? ...because
actually this javascript are not visible when loading web page under Mac
Os...and i can not click any link..


The java-script implementation depends on the browser and not the operating system. There are some significant differences between the common browsers. As always Internet Explorer on Windows is the exception since html browsing is embedded deep into the system.
MS Internet Explorer 5 on the Mac does not support the window.print() method.

...and just another line of thought: don't emulate functions with JavaScript (or any other method) that are already available in the browser (ANY browser can print HTML pages). As you can see from your own example, this is always browser specific.


If you really have to do something with your HTML code to make printing easier then use CSS. So if your audience uses browsers that are not able to switch style sheets on the fly, use JavaScript to open the same page in another window but with another style sheet that makes printing easier.

But never, ever mess around with the browser's functions. (Another popular example is: using the history to emulate the "back" button and failing because the user opened the previous link in a new window.)


Alex -- Dipl.-Ing. Alexander Forst-Rakoczy (email@hidden) Home Page: <http://homepage.mac.com/alfora/> AIM: aleforrak GPGKey: <http://homepage.mac.com/alfora/alfora-web-de.gpgkey> Fingerprint: 88A1 6795 2D4C 490D 6E2D 9E0D 6A07 FF76 B711 342A _______________________________________________ quicktime-vr mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-vr Do not post admin requests to the list. They will be ignored.

References: 
 >Re: javascript and Mac OS (From: Harald Walker <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.