Re: Signed Javascript in IE
- From: "VK" <schools_ring@xxxxxxxxx>
- Date: 3 Nov 2005 03:28:18 -0800
FatBo wrote:
> Dear all,
>
> I am writing a Javascript which print a page without prompting the
> print dialog when the page is loaded. However, there is a warning box
> prompted out because I am requesting the privilege of client's
> computer. But my boss doesn't want to lower the security settings and
> doesn't want to see the prompt dialog. I am wonder that signing the
> javascript can solve the problem or not.
>
> I am using the code to bypass the print dialog:
> <script>
> function Print()
> {
> if (document.all)
> {
> if (confirm("Print now?"))
> {
> WebBrowser1.ExecWB(6, 6) //use 6, 1 to prompt the print
> dialog or 6, 6 to omit it;
> WebBrowser1.outerHTML = "";
> //alert("print now");
> }
> }
> else
> {
> window.print();
> }
> }
> </script>
>
> Since the ExecWB(6,6) activeX control is not written by me so I cannot
> sign it. But can I get the same result if I can sign the javascript?
Microsoft doesn't have "Signed client-side JScript" concept as such,
it's the Netscape > FireFox way.
You can write an ActiveX control on any "real" language you have handy
right now and install it on each machine of question.
If your boss is able to cough up US$400, your customers can also
install properly signed ActiveX upon need (the security dialog will be
shown then only once during the initial installation).
Also it it's an intranet why not send printjob request to the server to
print it on the network printer?
.
- References:
- Signed Javascript in IE
- From: FatBo
- Signed Javascript in IE
- Prev by Date: Re: DxImageTransform Fade Transitions - HEIGHT problem
- Next by Date: Arrays on mouseover displayed in tooltip?
- Previous by thread: Signed Javascript in IE
- Next by thread: Re: Signed Javascript in IE
- Index(es):
Relevant Pages
|
Loading