javascript window.print() internet explorer 8 not printing entire webpage - javascript

When printing from windows7 with ie8; only whats visible in viewport is printing.
Printing from windows8 which I believe has ie9 prints the whole webpage with no issue, about 5 pages in total. It will work with compatibly view enabled though.
All is checked from the print prompt so that's not an issue. This was brought to my attention from a user so its not an isolated issue. Any help is appreciated.

I had to set the body to static
body{position: static;}

Related

XML Data Loads in Chrome & Safari, but not Firefox

I've been racking my brain trying to figure this out since it hasn't been an issue with previous builds, but for the life of me cannot find an answer.
If you go to knitstitchmedia.com/sandbox/html/index.html in Chrome or Safari and input a zip code (just skip through the message pop-up box), you'll see the map loads with the store locations. However, this isn't working in Firefox and simply reloads the page.
I'm not sure if it's because I'm not using English in the XML and that's causing Firefox not to work. I do know that if there were an error in my XML entries, it wouldn't work in any browser; thus, I am completely confused on what the issue could be.
Thoughts? And, THANK YOU!

window.print not printing all pages in IE

I have a page that contains iframes, i want to print them all using window.print() it works in chrome but not working in IE, it just prints the first page not the rest.
it just prints out the first page not other 5 pages.
any help would be much appreciated!
Not clear with your situation but to help, in IE window.print will always try to print the browser window and not the iframe window you are in unlike chrome and firefox.
To print corresponding iframe window in IE, do something like this.
window.top.document.getElementById("iframe-id").contentWindow.focus();
window.top.document.getElementById("iframe-id").contentWindow.print();
Hope this helps.

Internet Explorer 9 appearance conflict

I have been researching all over the internet about this, and unfortunately cannot find out why this is happening. It seems to only be happening in internet explorer 9, on certain computers.
The entire page looks like a mess only in IE 9 (some computers):
The URL of the website is Here
Can anyone tell me why this is happening in IE9?
(NOTE: Compatibility view cleans it, but then the Js/jQuery doesn't work right).
For some reason, IE thought that the site was in my intranet, and rendered it in Compatibility Mode (there's a setting in IE to automatically render intranet sites in CM).
When I unchecked the box to "automatically detect intranet network", the site rendered correctly.
So your real question is how does IE determine the intranet network, and how can you force your page to NOT render in Compatibility Mode... something like this.
I noticed that you have blank space above your doctype. IE hates this. The doctype needs to be the very first thing in the file.
You also have over 2300 HTML validation errors that should be investigated and rectified. Again, IE is very sensitive to invalid HTML.
Going on a whim here, but I think it's the usage of inline-block. I don't have IE9 installed to a point where I can use it's developer console to further inspect, but IE is known to be very bad about displaying inline-block elements.
In Google Chrome's console, I am able to replicate the same appearance using float:left as opposed to display:inline-block, so that should solve that piece of the issue.
Edit: The only syntax issue I see with the HTML is the placement of the </head> tag, which is not adjacent to the <body> tag.
Edit 2: As far as the outlining issue goes, try using this answer to another question.
Edited yet again to fix the display of the tags.

Firefox and IE continue to load after content has been inserted into a DIV

I have a situation where I'm inserting javascript generated HTML code into a DIV. One would think this would be a no brainer, but for some reason, once the code is in, the status bar and tab loading graphics start up in both browsers and never stop again. The page continually appears to be loading data, but in reality, there's nothing more to load. Any idea why this may be happening? Solutions? I appreciate any help. Thanks!
Install the Firebug plug-in for Firefox. Open it up and got to the NET tab. That will allow you to see your network activity. Something on the server may be stalling. This will help you find it.

Printing Iframe content

Can any one tell me the complete cross browser solution to print the contents of iframe.I followed the following links.But it is not working in chrome 3.0 browser & IE8.It is printing the entire page.
How do I print an IFrame from javascript in Safari/Chrome
Print iframe content in Opera and Chrome
Thanks for your valuable help...
As to Chrome, version 3 is way ancient. Please give a try to some newer version (like Chrome 16) and see if it works there.

Categories