hi forum
i m facing a problem regarding printing withing the frames page
i have a main frame page. which has on the left the menu html page loaded and on the right the target content page.
when i try to open a page on the right and print two different pages using iframes it does not work ,
on the contrary when i load the page without frames it does the print job perfectly.i fail to understand why this is happening
i m posting the partial code as the main code is too long and is not relevant for this issue.
the following is the code
pls suggest me some way out
-
<script language="JavaScript">
-
-
function printPg(ifrmname){
-
if(top.frames[ifrmname]){
-
top.frames[ifrmname].focus();
-
top.frames[ifrmname].print();
-
}
-
}
-
</script>
-
<td>
-
<iframe name="one" width="0" height="0" frameborder="0" src="E:/anand/program/final/databaseos/data/custprint.htm"></iframe>
-
-
<iframe name="two" width="0" height="0" frameborder="0" src="E:/anand/program/final/databaseos/data/factprint.htm"></iframe>
-
-
<a href="#" onclick="printPg('one');return false;">Print Customer Copy</a>
-
-
<a href="#" onclick="printPg('two');return false;">Print Factory Copy</a>
-
</td>
-
---smile always
anand