473,322 Members | 1,259 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Window.print not working in Internet Explorer 7.0 but works in fir

Hello All,

I am trying to offer "Print" functionality using an HTML button with the
help of "window.print()"

This button works fine in Firefox but not in IE7. I am dumping the entire
content of the page which has this HTML button code onto a different page
using document.write. Everything else works fine except for this print
button. I have a close button using "window.close" that works fine but not
this print button. Usually when the print button is clicked, it should
display the "Print" window. For example, see the printer icon to the right of
this post. When you click on the print icon, it will display you the
printable version along with a modal window to send the page to the printer.

Any ideas??

Thanks!!
Mar 28 '07 #1
2 9159
Diffident wrote:
Hello All,

I am trying to offer "Print" functionality using an HTML button with the
help of "window.print()"

This button works fine in Firefox but not in IE7. I am dumping the entire
content of the page which has this HTML button code onto a different page
using document.write. Everything else works fine except for this print
button. I have a close button using "window.close" that works fine but not
this print button. Usually when the print button is clicked, it should
display the "Print" window. For example, see the printer icon to the right of
this post. When you click on the print icon, it will display you the
printable version along with a modal window to send the page to the printer.

Any ideas??

Thanks!!
Please do a proper cross post instead of multi posting. Now people that
replies in one newsgroup won't see the replies from other newsgroups.

--
Göran Andersson
_____
http://www.guffa.com
Mar 28 '07 #2
Göran Andersson wrote:
Diffident wrote:
>Hello All,

I am trying to offer "Print" functionality using an HTML button with
the help of "window.print()"

This button works fine in Firefox but not in IE7. I am dumping the
entire content of the page which has this HTML button code onto a
different page using document.write. Everything else works fine except
for this print button. I have a close button using "window.close" that
works fine but not this print button. Usually when the print button is
clicked, it should display the "Print" window. For example, see the
printer icon to the right of this post. When you click on the print
icon, it will display you the printable version along with a modal
window to send the page to the printer.

Any ideas??

Thanks!!

Please do a proper cross post instead of multi posting. Now people that
replies in one newsgroup won't see the replies from other newsgroups.
Correction. What you did was reposting. That's just annoying.

--
Göran Andersson
_____
http://www.guffa.com
Mar 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: F | last post by:
I'm trying to open a window in a specific position of the screen with this script: window.open('window.htm','mywindow','width=250,height=350,screenX=20,screenY =100') it works with Netscape...
13
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to...
3
by: Asit | last post by:
<META HTTP-EQUIV="expires" content="0"> <META HTTP-EQUIV="pragma" content="no-cache"> <html> <head> <title>Fidelity NetBenefits</title> </head> <body BGCOLOR="#ffffff"> <script...
1
by: Joe Abou Jaoude | last post by:
hi all, the window.print method that is working perfectly on windows is giving a messagebox stating that a script error occured on Mac (using Internet explorer)... Although, after searching on...
1
by: dibyendu_k | last post by:
Hi, There is a problem i cant solve regarding Internet Explorer 5.5. It is regarding the Print Dialog Box. From a webpage if I open a popup window (window.open()) containing buttons Print and...
7
by: MrFez | last post by:
Through some investigation it appears that selecting "Every visit to the page" for the IE caching setting "Check for new version of stored pages" causes the window.opener property of child windows...
22
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the...
26
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
1
by: =?Utf-8?B?RGlmZmlkZW50?= | last post by:
Hello All, I am dumping the HTML content of a page using document.write. As part of this HTML code, I have an input "Print" button which does nothing but calling the window.print Window.print...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.