View Single Post
  #2 (permalink)  
Old Jun 12th, 2006, 21:31
osmenthe osmenthe is offline
New Member
Join Date: Jun 2006
Location: Washington
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Printing Frames in IE

Maybe I need to give a more complete example.

Frames page:

Code: Select all
 
<html>
<head>
<title>New Page 1</title>
</head>
<frameset rows="23%,*">
 <frame name="top" src="frameprintmenu.htm">
 <frame name="bottom" src="http://www.yahoo.com" target="_top">
 <noframes>
 <body>
 <p>This page uses frames, but your browser doesn't support them.</p>
 </body>
 </noframes>
</frameset>
</html>
This sets up the top frame and bottom frame. In the example I use two generic pages. I have been able to get the code to print the default bottom page, but as soon as I link to the other(google) it will give an error on page.

Here is the code for the top bar:

Code: Select all
 
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>link_print</title>
<script>
function framePrint(whichFrame){
parent[whichFrame].focus();
parent[whichFrame].print();
}
</script>
</head>
<body>
<p>This page is designated as &quot;top&quot;. The page below is &quot;bottom&quot;. This is the 
Link and Print page. The test is to print the pages below.</p>
 
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
 <tr>
  <td align="center"><a target="bottom" href="<A href="http://www.yahoo.com">Yahoo</a></td">http://www.yahoo.com">Yahoo</a></td>
  <td align="center"><a target="bottom" href="<A href="http://www.google.com/">Google</a></td">http://www.google.com/">Google</a></td>
  <td align="center">To Print the frame below press: <a href="javascript:framePrint('bottom');">HERE</a></td>
 </tr>
</table>
 
</body>
</html>
i could really use some advise as the examples available on the web are either written FOR rocket scientists or written BY minimalists.

Thanks
Rod
Reply With Quote