Hi,
I use a HTMLView gadget to display some text:
Global HTMLView1:TGadget = CreateHTMLView:TGadget(272, 16, 577, 445, MakeMods:TGadget, Null)
HtmlViewRun:String(HTMLView1:TGadget, "document.write('<html><head><script language=\'Javascript1.2\'><!--function printpage() {window.print();}//--></script></head><body>Visit www.LogicZone.de</body></html>');")
However, when I send
HtmlViewRun:String(HTMLView1:TGadget, "javascript:printpage()")
I get an error for ...
Using the print command of the context menu works fine.
When I exclude the printpage function from the document and send window.print() instead nothing happens ...
Maybe somebody knows the error?
Thanks,
Andre
I use a HTMLView gadget to display some text:
Global HTMLView1:TGadget = CreateHTMLView:TGadget(272, 16, 577, 445, MakeMods:TGadget, Null)
HtmlViewRun:String(HTMLView1:TGadget, "document.write('<html><head><script language=\'Javascript1.2\'><!--function printpage() {window.print();}//--></script></head><body>Visit www.LogicZone.de</body></html>');")
However, when I send
HtmlViewRun:String(HTMLView1:TGadget, "javascript:printpage()")
I get an error for ...
Using the print command of the context menu works fine.
When I exclude the printpage function from the document and send window.print() instead nothing happens ...
Maybe somebody knows the error?
Thanks,
Andre