Forum Moderators: open

Message Too Old, No Replies

Print Alternate Page in FF?

         

keyplyr

9:49 am on Apr 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This tag works in Internet Explorer.

<link rel="alternate" media="print" href="alternate-page.html">

Is there a similar tag for FireFox/Mozilla? Thanks.

benihana

10:14 am on Apr 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



change alternate to stylesheet and it should work in all browsers. (modern ones, that is)

<added> disregard above post, i assumed you were trying to import a print media stylesheet to reformat the current page, but it looks like you are trying to print a different page altogether </added>

BlobFisk

11:42 am on Apr 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmmmm - I've never used it myself, but according to the W3C it is a standard tag: [w3.org ].

One thing I notice that you're not using is the type attribute, I wonder if this will help:

<link rel="alternate" type="text/html" media="print" href="alternate-page.html">

HTH

Gusgsm

12:47 pm on Apr 29, 2005 (gmt 0)

10+ Year Member



I use this in the <head> section:

<link rel="stylesheet" href="verde.css" type="text/css" media="screen" />
<link rel="stylesheet" href="dina4.css" type="text/css" media="print" />

And it works ok. At least in the main things.

benihana

12:54 pm on Apr 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<link rel="stylesheet" href="verde.css" type="text/css" media="screen" />
<link rel="stylesheet" href="dina4.css" type="text/css" media="print" />

thats what i originally thought keyplyr was asking for, but the post is about alternate PAGES for printing, not alternate css

Gusgsm

1:01 pm on Apr 29, 2005 (gmt 0)

10+ Year Member



Yep. Disregard then my post.

keyplyr

5:48 pm on Apr 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks for the responses.

BlobFisk, I added type="text/html" to the tag but FF still prints the webpage and not the alternate. Wonder why?

BlobFisk

3:40 pm on May 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That is bizarre... I haven't seen anything about FF not supporting this either.

Anyone else seen this issue?

crypt_man

2:45 pm on May 18, 2005 (gmt 0)



hello world ;)

I have exactly the same problem as keyplyr.
My link tag works fine when I use IE (the linked document is printed instead of the html page) and when intend to print the document using Firefox the web page is always printed!
I would be very grateful if anyone knew a way to make Firefox behave like IE (I can't believe I'm writing this!) in this situation.

Thanks