This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes window.print() not working IE Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "window.print() not working IE" Watch "window.print() not working IE" New topic
Author

window.print() not working IE

selvakumar Thiyagarajan
Greenhorn

Joined: Oct 06, 2008
Posts: 28
Hi all,
The attached code is not working properly in IE. Printer window is not getting opened if i open in IE. But it works fine, in MOZILLA. Please advice on this.


HTML
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56191
    
  13

Do you really not indent your code?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
selvakumar Thiyagarajan
Greenhorn

Joined: Oct 06, 2008
Posts: 28
yes. any issues? i couldnt find answer. still struggling on this.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
well I do not see an x.document.close()

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56191
    
  13

selvakumar Thiyagarajan wrote:yes. any issues?
Yes, unindented code is hard to inspect. Here's a helpful hint: if you want people to spend time helping you, making it hard for them to do so isn't the best of approaches.
selvakumar Thiyagarajan
Greenhorn

Joined: Oct 06, 2008
Posts: 28
Eric Pascarello wrote:well I do not see an x.document.close()

Eric


Thanks Eric. It worked after inserting x.document.close()
Code:


 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: window.print() not working IE
 
Similar Threads
Javascript problem moving images from one div to another
JavaScript problem with IE
Having trouble with a javascript assignment
Access Data from Database By Submitting The select Values
cant display the table