pilotvtm
12-05-2009, 04:48 PM
1) Script Title:
Animated Collapsible DIV v2.4
2) Script URL (on DD):
Animated Collapsible DIV v2.4 (http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm)
3) Describe problem:
I was trying to make a personalized print button, but i seen that the divs from Animated Collapsible are not showing on prints...
What should i do?
This is the script i am using:
<script type="text/javascript">
function printSelection(node){
var content=node.innerHTML
var pwin=window.open('','print_content','width=100,height=100');
var elem=document.getElementById("printme").innerHTML;
pwin.document.open();
pwin.document.write('<html><body onload="window.print()">'+elem+'</body></html>');
pwin.document.close();
setTimeout(function(){pwin.close();},1000);
}
</script>
printme - the name of the principal div
printme is a table which contains all the toggled divs with the "display: none;" propriety...
i tried to print you page with Animated Collapsible DIV v2.4 and it's the same thing...doesn't sees the hidden divs...
This is the printing button:
<a href="" onclick="printSelection('elem');return false">print</a>
Thanks for the help!!!!
Animated Collapsible DIV v2.4
2) Script URL (on DD):
Animated Collapsible DIV v2.4 (http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm)
3) Describe problem:
I was trying to make a personalized print button, but i seen that the divs from Animated Collapsible are not showing on prints...
What should i do?
This is the script i am using:
<script type="text/javascript">
function printSelection(node){
var content=node.innerHTML
var pwin=window.open('','print_content','width=100,height=100');
var elem=document.getElementById("printme").innerHTML;
pwin.document.open();
pwin.document.write('<html><body onload="window.print()">'+elem+'</body></html>');
pwin.document.close();
setTimeout(function(){pwin.close();},1000);
}
</script>
printme - the name of the principal div
printme is a table which contains all the toggled divs with the "display: none;" propriety...
i tried to print you page with Animated Collapsible DIV v2.4 and it's the same thing...doesn't sees the hidden divs...
This is the printing button:
<a href="" onclick="printSelection('elem');return false">print</a>
Thanks for the help!!!!