IT Community - Software Programming, Web Development and Technical Support

how to print iframe pdf document using file print menu using javascript

This is a discussion on how to print iframe pdf document using file print menu using javascript within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; how to print iframe pdf document using file print menu using javascript...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > HTML, CSS and Javascript Coding Techniques

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 08-22-2007, 03:24 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 881
kingmaker is on a distinguished road
Send a message via MSN to kingmaker
Question how to print iframe pdf document using file print menu using javascript

how to print iframe pdf document using file print menu using javascript
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 08-22-2007, 04:32 AM
GDevakii GDevakii is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 125
GDevakii is on a distinguished road
Default Re: how to print iframe pdf document using file print menu using javascript

<HTML>
<HEAD>
<SCRIPT>
var frameSrc = '';
frameSrc += '<HTML><BODY>';
frameSrc += '<BUTTON ONCLICK="alert(\'Kibology\');">';
frameSrc += 'button<\/BUTTON>';
frameSrc += '<\/BODY><\/HTML>';
var iframeWin, iframeElement;
function init () {
iframeWin = window.frames.anIframe;
iframeWin.document.open();
iframeWin.document.write(frameSrc);
iframeWin.document.close();
iframeElement =
document.getElementById ?
document.getElementById('anIframe') :
document.all['anIframe'];
}
</SCRIPT>


</HEAD>
<BODY ONLOAD="init();">
<A HREF="javascript: alert
(iframeWin.document.body.firstChild.nodeName); void 0">
show iframe first child
</A>
|
<A HREF="javascript: iframeElement.width = 300; void 0">
set width to 300
</A>
<BR>
<IFRAME ID="anIframe" NAME="anIframe" SRC="about:blank" WIDTH="100">
</IFRAME>
</BODY>
</HTML>
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Print Ads dvduval Google 1 10-14-2007 03:46 PM
How can I print my output? S.Vinothkumar C and C++ Programming 2 10-12-2007 11:46 PM
Difference between echo and print statement? devarajan.v PHP Programming 2 07-30-2007 03:26 AM
How you print the array using Perl? raj Perl 1 07-25-2007 12:02 AM


All times are GMT -7. The time now is 11:07 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0