jave script problem: works in ie not...

User 2135628 Photo


Registered User
10 posts

My script will open a pop-up followed the print window in both browsers. Clicking on the print button in ie will yield a hard copy. However in firefox it goes through motion but nothing happens.

I’m using the following script:
<!--
<script type="text/javascript">
function openWin()
{
myWindow=window.open('91060_print.html','','width=400,height=400,resizable=1,scrollbars=1,left=200,top=200');
myWindow.focus();
myWindow.print();
}
</script>
–>

So what am I doing wrong?
User 131437 Photo


Ambassador
151 posts

Do you have FF configured to disable printing from script?
Visit <a href="http://leviabbott.com" target="_blank">LeviAbbott.com</a>!
User 2135628 Photo


Registered User
10 posts

No printing from script is not disabled.
User 187934 Photo


Senior Advisor
20,271 posts

Can you post a link?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2135628 Photo


Registered User
10 posts

Here's a link to my test page: http://www.mwlist.com/test/
User 187934 Photo


Senior Advisor
20,271 posts

It worked for me in FX 3.6.15. IE 8 ran as long as I used compatibility mode.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2135628 Photo


Registered User
10 posts

Eric, Thank you for your help. I must have an incorrect setting in firefox.
User 629005 Photo


Ambassador
2,174 posts

Works for me in FireFox 3.6.15
Living the dream, stocking the cream :D

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.