How Do I Print A Page In IE5 For Mac? Window.print() Doesn't Work

Jan 3, 2002

Hey all. I am currently putting together a test page of mine where a popup window comes up showing a coupon that I will have a link enabling them to print it simply and easily.

For my current code I have a simple <a href="javascript:window.print()"> that works great on both Internet Explorer 5 and Netscape 4/6 on the PC but for some reason, Internet Explorer 5 for Macintosh doesn't do a thing.

View 2 Replies


ADVERTISEMENT

Print A Web Page With Method Window.print() Without Pages Number And Footer

Jul 3, 2007

I would like to print a Web page with javascript method window.print() without pages number and footer.

View 7 Replies View Related

Window.print Doesn't Print Long Page / Fix It?

Jul 21, 2009

I'm facing a different problem.

I'm having a long page where there will be content to be printed.

I'm using the css using media=print to hide all the unwanted contents and using the window.print method to invoke printing.

But when i click the print button it prints only partial content upto a single page and all the remaining contents are discarded.

I wonder what may be the problem!!!

And there's another problem , i've bills to be printed in order but dont want them to be breaking in between pages .(ie a bill should be printed fully if there is enough space at the bottom or should be printed on the next page)

How can i do both of this?

View 3 Replies View Related

Window.print() Does Not Print Page Correctly

Jun 22, 2007

So I have a print page that's written in a combination of php & html. The body tag is outside the php with an onload="window.print();window.close;"

The idea behind this print page is when the print button is pressed on the parent window, it generates this child window that is specifically made larger for printing reports that people can read easily. I use css for text styles and the table "width" is longer.

All the html code inbetween the body tags is created by php using the php "Print" function.
</head>

<body class="page" onload="window.print();window.close;">
<?php
Print "<table width=1600 border=1 cellpadding=0 cellspacing=0 class=page>";
Print "<tr bgcolor=cbe5ff>";
Print "<td width=30>WO #</td>";
// yada yada yada
?>

My problem is it does not print the table dimension or the font size above a certain size. When I print in landscape, which is what this page is designed for, it prints the same size as "scaled to fit" portrait. On the screen the size is correct and if I use the browser print button, it prints to the correct size.

The css works, it will make changes and will even make the text smaller just won't print over a certain size (9pt?).

View 1 Replies View Related

Window.print() - Configure Function To Make It Print A Certain Pixel Only?

Aug 30, 2011

Can I configure this function to make it print a certain pixel only?

Around 500px X 700px Center.

CODE:

Is it possible?

View 1 Replies View Related

Window.print With No Print Dialog Prompt

Jul 20, 2005

Is it possible to do an ie print from javascript that does not bring
up the print dialog? I'm in a situation where i need to load a
sequence of files into a browser and print all of them without any
user interaction.

View 3 Replies View Related

Window.print() Doesn't Work!?

Jul 20, 2005

I've got a javascript function in a parent document that generates an HTML
document on the fly when a button is clicked... that generated popup
contains a button that's supposed to print the contents of the popup window
(self). However, the button won't print (nothing happens on click) from the
newly generated popup to print the contents of the window... the complete
source for the generated page is below, I've tried every combination I can
think of, but absolutely nothing happens when I click the button... I tried
the right-click print from the context menu, and everything comes up... so,
the issue's in code somewhere ....

View 3 Replies View Related

IE7 Window.close() Does Not Work After Print Preview?

Jan 29, 2010

Basically in IE7 when you click Print Preview from the menu and the click a close button on that page which executes window.close() - the browser does not close. One thread indicated that the browser is still spooling to the Printer (when it is not) and this prevents the close() from working.

View 2 Replies View Related

Window.print() Not Printing Whole Page?

Oct 21, 2009

I've scrollable screen. I'm having a print button on it and "window.print()" function is called on its onclick event.My problem is it only prints the "viewable" part of the screen, not the whole screen.P.S. I'm using IE7 and it must work for IE7 atleast (for rest I'm not bothered).

View 2 Replies View Related

Window.print() - Preview On The Page

Jul 7, 2009

I'm having an issue with window.print().

Code JavaScript:
$('a.printButton').click(function(){
window.print();
$('#couponBox').animate({ height:"0px"}, 500);
return false;
});

When I click the l hyperlink, the print box comes up and I go to preview, but nothing is on the page. I have a print style sheet that hides everything else on the page and re-adjusts the couponBox's overflow to appear, but the image that's in couponBox that is supposed to show doesn't when I preview. However, after I cancel out the print box and go to print from the browser, the image appears just as it's supposed to.

View 1 Replies View Related

Is It Possible To Print [using Window.print()]

Jul 23, 2005

Is it possible to print [using window.print()] a page that has no "title"
and "page number" on the top and no "link adress" and "date" on the bottom
(to print just a page just as it is...)?

View 2 Replies View Related

Window.print Not Working In Fully Generated Page

Nov 9, 2005

function PopUpWindow(w,h,urla,v)
{
document.getElementById('h1').value=v
var popUpX = (screen.width/2)-w/2; var popUpY = (screen.height/2)-h/2;
var pos = "left="+popUpX+",top="+popUpY;
window.open(urla,'myPopup',"scrollbars=yes,width="+w+",height="+h+","+pos);
}

The above function is called by the following button click event
onclick = "PopUpWindow(390,500,'gal_rhinoplastyresult.html',photos1)"
where photos1 is an image array

which opens the bellow page as follows....everything is fine but no functionality in print i.e. window.print() not working.

View 1 Replies View Related

Print Link That Doesn't Show The Print Dialog

Apr 7, 2006

I'm trying to create a print link that sends the page to the printer without opening the print dialog box on the browser.

I know that window.print() will open the print dialog and then the user has to click OK.

is there anything that can do this?

View 1 Replies View Related

Get Print Preview Triggered By Button Rather Than Just Print?

May 1, 2009

Is there a way to get a print preview triggered by a button rather than just print?

<input type="button" name="print" value="Print" onClick="document.print();">

Unfortunately, the WebBrowser.execWB(7) functionality doesn't work in FF3.

Any idea using good old fashion JavaScript or jQuery?

View 1 Replies View Related

Print A Div And Iframe Content With Single Print?

Jun 27, 2007

I have a requirement to print particular area of a web page. Web page has many div's and one iframe in it. I need to print a div and iframe content with one single print command. I am able to do so but then two print dialog boxes come up when the print command is given. I have written a javascript function to achieve this.

I did find a solution to this but then I do not understand why onload fails to work in this scenario. I am summarizing steps I had followed.

1) Read the contents of div using innerHTML and store it to a variable.

2) Read the contents of iframe and store it to a variable. "Details" is id of the iframe.

var iframeObj = document.getElementById("Details");
var iframeDoc;
frameDoc = iframeObj.contentWindow.document;

3) Open a window and write all these content after writing these few lines
flashDivWindow.document.write('<html><head><title>Print page</title></head><body onload="javascript:window.print()">');

When I view the source all HTML code can be seen as expected, however this doesn't trigger onload event. I need to refresh the page for print to happen, some thing which isn't practical. Using Javascript reload doesn't help as print is invoked even before the page content is reloaded.

View 2 Replies View Related

Print Two Iframes Within Same Print Method?

Feb 15, 2009

I want have two iframes in a single php page and I print them using two print methods. May I know how to print the both iframes using a single print method?

View 6 Replies View Related

Can't Get Print To Work

Jun 1, 2011

you can see the print function when the program starts yet as soon as it finishes print has vanished why is this also when the program displays the result the variable displays the correct item except it has undefined next to it:

<html>
<head>
<title>Book Program</title>

[code]....

View 1 Replies View Related

Can't Get Print Function To Work

Jun 1, 2011

here is my code it works fine but the print function seems to disapear after the code has ended

<html>
<head>
<title>Book Program</title>

[code]....

View 1 Replies View Related

Window.print() Function - Text Data Of Around 6 Page Length In A Text Editor

Oct 26, 2009

I m having a text data of around 6 page length in a text editor...I want to print dat data using window.print. For that i displayed dat data in a html page and used window.print(). Bt my client wants dat some line spaces shud be inserted first in the starting of the page and on the second page also...After that the printing shud be normal... How can i set the page in such a format...?

View 1 Replies View Related

About Window.print

Jul 23, 2005

Is that posible to start to print atraight away without the window's "print"
prompt when I do window.print()?

View 4 Replies View Related

Window.print();

Jul 20, 2005

I need to print a long HTML page and the papar cut at the middle of the
page and some of the data lost.

I print with JavaScript command "window.print()".
Is there any option to control or to split the page that will fit for
A4 page size and not cut it.

View 2 Replies View Related

Window.Print Parameters?

May 31, 2006

I don't know if this is even possible, but if I have a window.Print command is there a way to set the printing preference to Landscape by default. I have this table and I got it as small as possible but the print still gets cut off to the right. The only solution is printing in Landscape.

View 1 Replies View Related

Window.print(); In Safari!?

Aug 11, 2004

i'm trying to send a html page directly to the print preview and bypass opening it in a new window. i've found a good solution by having a frameset with 2 rows. the top row is relative while the bottom row is 1 pixel height (hidden at the bottom). the user clicks a print button in the main top frame and it loads the html page that needs to be printed in the bottom hidden frame. on the print file, i included:

<body onload="window.print();">

therefore, the code above initiates an instant print preview. the problem is that it doesn't work in safari (osx). instead of printing the specific frame that the page is in, it print the frameset at the _top of the browser window.i tried changing the location to this., parent.window, etc...but, none worked.

View 3 Replies View Related

Javascript:window.print() In Landscape?

Dec 14, 2005

Is it possible to send attributes into this function to change the
print preferences from Portrait to Landscape with IE 6.0 set as the
standard browser? Right now I'm using

javascript:window.print()

as the command.

Clients want it and I want to confirm it's not possible. If I'm using
an old, deprecated process, please give me a heads-up. I'm no
Javascript genius.

View 1 Replies View Related

Javascript Window.print(); Question

Jan 27, 2006

I've written a Fax Cover Sheet generator web page for the company I work for. The user inputs all the information into a form and clicks 'print'. I do not know CGI, so i've accomplished the tasking using javascript to generate a pop-up window containing the formatted information from the form. However, no matter what I try, I can't get the browser to print the pop-up box instead of the main window. Can someone help me?

Here is sample code that imitates how the real page works:

View 4 Replies View Related

Window.print() - Can You Set The Paper Size?

Apr 27, 2007

We have a printer-friendly version of a web page that we want to print. The problem is we want it to print on a legal size paper by default.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved