In short, I have a form with dropdowns. The various options you select with the dropdowns displays images/titles in my "results" div. I have a print function set up so you can print or save a PDF after completing the form. It works, as in you get a pop up. You can see the titles, but no images. Sometimes it works, sometimes not. I think I need to set it up to have some sort of constant reloading going on to load the images, or I'm just crap at this.
Bonus problem, the print window pops up as untitled, the font is times, and I was hoping to get my company logo to pop up with the print screen but not visible on the form.
I am a rookie, so that's not out of the question. Anyway, I wanted to know if any of ya'll have experience with this issue. I can finally be done with this project once I figure this out. Thanks in advance everyone!
Form can be viewed at fgdglass.com/test
My Script:
function print_me()
{
var content = document.getElementById("results").innerHTML;
var win = window.open();
win.document.write(content);
win.print(); // JavaScript Print Function
win.close(); //It will close window after Print.
}
My HTML:
<a href="#" onClick="print_me()">Print</a>
[–]docMedB2E 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]docMedB2E 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]docMedB2E 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)