SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2003
    Location
    UK
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Printing with a MAC!

    Hi,

    I am trying to create a link that when click automatically prints the page. I have the basic command "Javascript:window.print()" which works fine in IE/NETSCAPE on a PC just it doesn't work on a MAC.

    Does anyone know of a script that will do the same function but is MAC compatable.

    Thanks in advance for any help!

    Allan

  2. #2
    Drupaler bronze trophy greg.harvey's Avatar
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    3,258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It doesn't exist. There is no way to force a Mac to print in NN4. Should work in IE5 though...?

    Edit:

    My mistake. After a little digging in Google, window.print() doesn't work in NN4 or IE5 for Mac. Even found a script that searches for those two specific browsers and pops an error message reading "Your browser will not print this document properly."


    G

  3. #3
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by greg.harvey
    It doesn't exist. There is no way to force a Mac to print in NN4. Should work in IE5 though...?

    Edit:

    My mistake. After a little digging in Google, window.print() doesn't work in NN4 or IE5 for Mac. Even found a script that searches for those two specific browsers and pops an error message reading "Your browser will not print this document properly."


    G
    Why not just offer instructions on how to print from a Mac? Some simple code like this would help:
    Code:
    <a href="/" onclick="window.print(); return false;">Print this page</a>
    <a href="/macprint.html" onclick="window.open(this.href); return false;">Printing Instructions for Mac users</a>
    Then have macprint.html open in a new window with instructions (i.e. "Go to the top menu, click on File, then click on Print"...). It's not the most elegant solution, but it shouldn't bee too intrusive either.


Bookmarks

Posting Permissions

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