Re: Signed Javascript in IE




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?

.



Relevant Pages

  • Trigger Update of ActiveX Control in Javascript?
    ... Is is possible for javascript to tell IE that it needs to install a new ... version of an ActiveX control? ... The idea is to have javascript compare the ...
    (microsoft.public.scripting.jscript)
  • Re: Signed Javascript in IE
    ... I am writing a Javascript which print a page without prompting the ... I am wonder that signing the javascript can solve the problem or not. ... function Print() {if {if ) { ... Since the ExecWBactiveX control is not written by me so I cannot ...
    (comp.lang.javascript)
  • JavaScript questions
    ... First, to insure MAXIMUM Security, I disbaled JavaScript ... Windows version on the CD. ... A fresh install or even a repair installation is not ...
    (microsoft.public.windowsxp.general)
  • Re: JavaScript is blocked
    ... Javascript is not included in XP or SP2. ... You have to install it. ... Download the Microsoft Java VM for Windows XP here ... Allow active content to run in files on My Computer - Windows XP Service ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: JavaScript is blocked
    ... Javascript is not included in XP or SP2. ... You have to install it. ... Download the Microsoft Java VM for Windows XP here ... You can get the Sun Java J2SE RunTimes or SDK here: ...
    (microsoft.public.windows.inetexplorer.ie6.browser)

Loading