Inconsistent Window.print Behavior In Netscape And IE6

Mar 20, 2007

I have a JSP page on which when print is pressed - Records are fetched
on a redirected page and those are to be printed.

I use the lines -
<script language="javascript">
window.print();
history.back();
</script>
to do the same.

When browsed from Netscape 4.7, the Resultset page is printed
perfectly whereas in IE6, the resultset page is generated and the
source page is printed i.e. the one where Print command was given

Is there a workaround for IE6 for the same which will let me print the
Result page silently without changing the sequence of operations for
the user?

View 1 Replies


ADVERTISEMENT

JQuery :: Inconsistent Event Behavior In WebKit Browsers

Jun 22, 2010

I have been spending my whole life on converting a flash version of a header/menu system to jQuery HTML. It is very nearly done in that it works nearly 100% perfectly in Firefox and IE8. [URL]. Unfortunately, in Chrome and Safari, my menu events of the top menu seem to fire inconsistently, and in the wrong order. It is easy to trigger a problem by simply circling your mouse over the top links. One of the menus will retract when it's already retracted, or the mouseover event for one or more of the links will seemingly detach, making the menu unusable.

The way it is supposed to work is as follows: Person hovers over link, causing menu to slide out and the mouseover event to be detached. This also triggers a 1 second timer that retracts the menuHovering over menu cancels 1 second timer.When the mouse leaves the menu, the menu is retracted and the original mouseover event is attached to the link. It's a bit hackish but it works and I've spent way too much time on this project as is. I have a lot of iphone detection checking to disable/enable some portions of the code if the browser is mobile safari. The site works fine in mobile safari as is.

View 2 Replies View Related

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() - 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 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

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 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() 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

Netscape New Window

Dec 14, 2006

i tried everything to open a new window of smaller size in Netscape, just couldn't do it. Is it my own Netscape browser setting or Netscape itself's problem?

here's one of the code im using:

<A HREF="javascript:void(0)"

'welcome','width=300,height=200')">
Open a new window</A>

View 3 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.status In Netscape

Jun 13, 2005

I have a inline javascript function in my jsp.

HTML Code:

onmouseover="window.status='Registered Content - File System Jobs'return true;"
onmouseout="window.status=''return true;"

But this doen't work in netscape? Do I need to use anything else to make it work in netscape?

View 8 Replies View Related

Window.close() And Mozilla/Netscape

Nov 24, 2005

I'm trying to make a link that closes the browser:

<a href="javascript:window.close()">CLOSE</a>

It works with IE6 but not with Mozilla and Netscape.
Does anybody knows the reason why?

View 7 Replies View Related

Frame - Window.open() In Netscape

Jul 20, 2005

I have a page with 4 frames in it. If I click on a button in the 4th frame, a new window has to be opened and the value of the listbox in the 3rd frame hoas to be passed ....
My code works fine in IE, but doesn't in Netscape .....

First, the value of the listbox .... I try to get it with
parent.frame3.form.listbox.value ... But an alert of this (as a test)
does nothing .... I tried several combinations like parent.frames[2]
and parent.frames[frame3] but nothing happens ...

Another problem is that the frame4 is blanked ... strangely enough ...
I'm just doing window.open('blablabla');

View 2 Replies View Related

Closing Window Not Opened By The Script - Netscape 7.1

Jul 23, 2005

The application I am working on uses Frames (TopFrame, SideFrame(Left)
and the MainFrame). On the occurance of a certain event, I am closing
the window from one of the frames. This is the script I use.

function CloseWin ()
{
window.opener = window;
window.close();
}

Works perfectly well with IE. But not with Netscape. The Javascript
console says 'Script may not close windows that were not opened by the
script'. Is there any workaround to this?

View 8 Replies View Related

Window.event Good For IE But Not Netscape/Firefox

May 8, 2006

I am try to detect the mouse pointer by

var event = window.event;


var x = event.pageX;
var y = event.pageY;

This is working fine in IE, but in
Netscape/Firefox where event return undefined.

Can someone tel me how to detect mouse pointer
in Netscape/Firefox?

View 6 Replies View Related

Print Pop-Up Window Not Main Window

Feb 26, 2006

I'm creating a Pizza order form. Part of my project includes the ability to print a receipt which I have created successfully as a pop-up window; however, I have the window.print() function in that part of the code and it will not print the pop-up receipt, but rather the main window. Code:

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

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

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

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() - 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

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