Nov 25, 2011, 9:16 PM
[CLOSED] Load html in window to print an image.
Hi,
I can not see the popup.
Any suggestion?
Erro : Uncaught SyntaxError: Unexpected identifier
I can not see the popup.
Any suggestion?
Erro : Uncaught SyntaxError: Unexpected identifier
var pagina = "<html>" +
"<head>" +
"<title>Janeala de impressão temporária</title>" +
"<script>" +
"function step1() {" +
" setTimeout('step2()', 10);" +
"}" +
"function step2() {" +
" window.print();" +
" window.close();" +
"}" +
"</scr" + "ipt>" +
"</head>" +
"<body onLoad='step1()'>" +
"<img src='" + url + "'/>" +
"</body>" +
"</html>";
X.AddScript("var pw = window.open('about:blank', '_new'); pw.document.open(); pw.document.write('"+pagina+"'); pw.document.close();");
Thanks !
Last edited by Daniil; Nov 29, 2011 at 6:09 AM.
Reason: [CLOSED]