Hello All,
I am taking the document.documentElement.innerHTML from the current page displayed to the user and converting it to pdf using
Java.
I send document.documentElement.innerHTML from the client and interpret and process it at the server.
My question is :
there are several elements that I would like to remove in the html before I can send it over to the server.
Eg. I do not need some text boxes etc as the pdf will be a snapshot of the viewing page hence no need for input boxes.
When I try :
var comments = document.getElementById('toggleDisplayComments');
var parentElement = comments.parentNode;
parentElement.removeChild(comments);
The element gets removed in the page that is viewed and not in the html that I am sending.
Can someone please help how can I modify the document.documentElement.innerHTML before it gets sent using Javascript while not modifying the display.
Thanks.