Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-13-2009, 10:27 AM   PM User | #1
bganesan
New to the CF scene

 
Join Date: May 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
bganesan is an unknown quantity at this point
Thumbs up Print iframes content pdf file using javascript in safari browser

<HTML>
<script Language="javascript">

function printfile()
{
window.frames['objAdobePrint'].focus();
window.frames['objAdobePrint'].print();
}

</script>
<BODY>

<iframe src="Test.pdf" id="objAdobePrint" name="objAdobePrint" height="250" width="100%" frameborder=0></iframe><br>

<input type="button" value="Print" onclick="javascript: printfile();">

</BODY>
</HTML>

the above code working in Firefox browser, but its not working in safari browser.

if i try to print this pdf file in safari browser i am getting empty page print out.

if i open any pdf file in firefox browser, i can print that pdf file from toolbar File->Print option,
but its not working for safari browser.

any one can help me for above issue?
bganesan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:28 PM.


Advertisement
Log in to turn off these ads.