I am using jQuery's load
function on a page to get the contents of a webpage and then print it. Here is my code:
$('#container').load('<?php print $_GET['load']; ?>', function(data) {
window.print();
});
where the variable 'load' is the url.
The problem is that the page being loaded has a javascript designed filter attached it, meaning, on that page the user can click buttons to remove or display certain information e.g. { display: none }
.
However the items which are hidden by the user DO show up in this new page. I understand why this is so, the JavaScript isn't changing the base HTML of the page and it's still there, but I would like to find a way around this issue.