Re: Word COM object not marked as 'safe'?
From: Joe Fawcett (joefawcett_at_hotmail.com)
Date: 09/03/04
- Next message: Evertjan.: "Re: javascript to get local IP"
- Previous message: dudulho: "Re: javascript to get local IP"
- In reply to: Rob Stewart: "Word COM object not marked as 'safe'?"
- Next in thread: Rob Stewart: "Re: Word COM object not marked as 'safe'?"
- Reply: Rob Stewart: "Re: Word COM object not marked as 'safe'?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 3 Sep 2004 11:51:17 +0100
"Rob Stewart" <robst@newsgroups.nospam> wrote in message
news:8549EABA-7AD7-48A9-84B8-33CF2AE79B18@microsoft.com...
> I have a web page that launches a javascript to open a Word document on a
> client PC:
>
> ****************************
> function launchWord(fileName)
> {
> var theApp = new ActiveXObject("Word.Application");
> if (theApp != null)
> {
> theApp.Visible = true;
> theApp.Documents.Open(fileName, false, false);
> }
> }
> ****************************
>
> This works fine, except that we get an IE message:
>
> "An ActiveX control on this page might be unsafe to interact with other
> parts of the page. Do you want to allow this interaction?"
>
> Clicking Yes launches the Word doc, but I want to avoid this prompt
> altogether. If I set the IE security option "Initialize and script ActiveX
> controls not marked as safe" to "Enable", this fixes the problem, but our
> client will not allow this setting (understandably).
>
> My question is - given that the ActiveX control that this message is
> referring to is the Word COM object, how can I mark it as 'safe'? How can
I
> avoid this messagebox?
>
> Cheers,
> Rob
If your user wants the functionality of your site but without the warning
ask them to add your site to trusted sites zone and lower the settings for
that zone only.
-- Joe
- Next message: Evertjan.: "Re: javascript to get local IP"
- Previous message: dudulho: "Re: javascript to get local IP"
- In reply to: Rob Stewart: "Word COM object not marked as 'safe'?"
- Next in thread: Rob Stewart: "Re: Word COM object not marked as 'safe'?"
- Reply: Rob Stewart: "Re: Word COM object not marked as 'safe'?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|