SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict Garrett's Avatar
    Join Date
    Feb 2001
    Location
    England
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hello

    can anyone tell me why this never works in IE 5 on mac

    <a href="#" onmousedown="javascript:window.print()"><img src="print.gif" width="25" height="20"></a>

    and no problem on netscape, is there a solution for IE mac?

    Garrett

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2001
    Location
    D¨n ╔ideann, Alba
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I asked this in a thread a few days ago. No, one could confirm yay or nay, but in a sample piece of code I saw somewhere else, Macs appeared not to be supported. Pity.


  3. #3
    SitePoint Addict Garrett's Avatar
    Join Date
    Feb 2001
    Location
    England
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    surely there is some way of calling the printer from explorer on a mac? this function has existed since netscape 3!!!!

    ok so maybe it does'nt do it in javascript but does anyone know of any other way, some jscript, php anything?

    Garrett

  4. #4
    SitePoint Enthusiast
    Join Date
    Feb 2001
    Location
    D¨n ╔ideann, Alba
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Javascript and JScript are moreless the same thing, the latter merely being MS's version. There isn't an exclusively IE method, they both call window.print.

    As for PHP, this is a server side language and is therefore irrelevant here. What you want to do can only be achieved on the client machine and therefore you need a client side scripting language such as JS.

    Server side languages serve up pages according to certain values and conditions (for want of a better way of putting it), whereas client side scripts allow you to manipulate the browser itself.

    I hate to say it, but tough cookies.


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
  •