Html generate data and print from another page
Posted
by Hulk
on Stack Overflow
See other posts from Stack Overflow
or by Hulk
Published on 2010-04-05T16:10:31Z
Indexed on
2010/04/05
16:13 UTC
Read the original article
Hit count: 478
In the below code,
in a.html there is this code as,
<div id="tableview"></div>//Data loaded dynamically
<input type="button" id="printbtn" onclick="print()"/>
<script>
function print()
{
var data=$('#tableview').html();
dataobj.print();
}
In b.html
I need to print a.html without opening it ,But without opening it how will the data in the div get generated and how to print only this data from b.html
Thanks..
© Stack Overflow or respective owner