Solved

Printing issue in Firefox 27

Posted on 2014-03-17
15
191 Views
Last Modified: 2014-04-27
Hi Experts,

I doubt it has to do with code since it works in all prior versions including 26.
I can see popup I am populating with javascript and then when I print it ... it prints tags / labels  from the form but not textboxes with data.

Anyone aware or experienced same issue ?

I tried a few things but it looks like something with the browser .... it does same thing when I print as PDF ... the form tables, labels but data from texboxes is missing.

Thanks.
0
Comment
Question by:fpoyavo
  • 8
  • 7
15 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39935953
I have Firefox 27.0.1 and I haven't been having any problems but I do very little printing from the browser.  Can you give a link you're having trouble with?
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 39937052
Its a regular javascript based printing .. not from the browser.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39937338
That doesn't make any sense.  If you are printing to a printer from a page in the Firefox web browser, it doesn't matter how you start it, it still goes thru the browser print functions.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 1

Author Comment

by:fpoyavo
ID: 39938348
I don't want to argue but you are missing my point. Thanks.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39938366
I don't believe you have expressed your point.  Do you have an example of the problem you are having that we could look at to see what you are talking about?
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 39938560
Sure .

1. Install FF27
2. Use simple page with textarea and button to print the page.
3. When dialog appears all is ok but when you print to paper whatever you have in textarea
    is not printed.

Thanks.
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39938659
This works fine on my computer with Firefox 27 which I use all the time (except that it will be 28 in a minute).  And IE8 and Chrome 33.  I even filled in the text for you.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>JS Print Test</title>
</head>
<body>
<h1>JS Print Test</h1>
<textarea rows="6" cols="40">
This is a test of using javascript to print the content of a textarea.  It works fine on my computer in Firefox 27.  And in IE8 and Chrome 33.
</textarea>
<button type="button" value="print" onClick="window.print()">Print</button>
</body>
</html>

Open in new window

0
 
LVL 1

Author Comment

by:fpoyavo
ID: 39942598
Correct. So now print it to paper. Do you see your text from textarea ?
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39942845
Yes.  It's prints out just like it shows on the screen.  Are you doing something different or something in addition to my code?  Are you using standard fonts or are you loading a web font?
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 39943142
Again I am able to print in all browsers except FF27 so obviously I am using right font.

The only difference is that I do onload=self.print
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39943197
I believe this is the correct format:

<body onLoad="self.print()">

That is supposed to be the same as...

<body onLoad="window.print()">

You might give that a try to see if Firefox is just being picky about it.
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 39943262
I tried it and no luck
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39943412
Did you try my little demo page by itself?
0
 
LVL 1

Author Comment

by:fpoyavo
ID: 39944293
Yes it does but mine is not ... I generate html dynamically but it looks ok and I can see value in textarea but it does not print it physically to printer. So my print dialog is 100% looks great ... I am not getting what else can be there :(((
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39944444
I don't know what to tell you then.  You would have to show me an example and method that does not work so I can try it.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now