Re: Trouble executing ActiveXObject
From: Don (no_at_adr.com)
Date: 09/22/04
- Next message: Dave Anderson: "Re: Canceling the change in <select>"
- Previous message: Erencans: "CheckBox"
- In reply to: McKirahan: "Re: Trouble executing ActiveXObject"
- Next in thread: McKirahan: "Re: Trouble executing ActiveXObject"
- Reply: McKirahan: "Re: Trouble executing ActiveXObject"
- Reply: Steve van Dongen [MSFT]: "Re: Trouble executing ActiveXObject"
- Reply: Christoph Basedau: "Re: Trouble executing ActiveXObject"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 22 Sep 2004 08:26:41 -0700
On Wed, 22 Sep 2004 11:44:45 GMT, "McKirahan" <News@McKirahan.com>
wrote:
>"Don" <no@adr.com> wrote in message
>news:d45uk0p4epbjsbsfhnpbcq5koac4u9kd01@4ax.com...
>> I'm trying to run the following page on my desktop from my host
>> server. It works just fine if I run it from my desktop, but not if I
>> run it from the server. I get "Error: Permission denied". I
>> understand about the security issues surrounding ActiveX, but since
>> I'm not accessinig any client-side files, I would think this should
>> work. Any ideas would be appreciated.
>>
>> Thanks,
>> Don
>>
>>
>> <html>
>> <head>
>> <title>Test Script</title>
>> <meta http-equiv="Content-Type" content="text/html;
>> charset=iso-8859-1">
>> </head>
>> <body>
>> <script language="JavaScript" type="text/javascript">
>> <!--
>> //
>> //
>> var sCPCIndexPage1URL = [];
>> var sCPCIndexPage1HTML = [];
>> //
>> // Get CPC index page 1
>> //
>> sCPCIndexPage1URL = "http://www.google.com";
>> var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
>> xmlhttp.Open("Get",sCPCIndexPage1URL,false);
>> xmlhttp.send();
>> sCPCIndexPage1HTML = xmlhttp.responseText;
>> //
>> // Display page
>> //
>> var wind = window.open();
>> wind.document.write(sCPCIndexPage1HTML);
>> //-->
>> </script>
>> </body>
>> </html>
>>
>>
>>
>> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
>> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
>> -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
>
>I first get the following error:
>
>"This page is accessing information that is not under its control.
>This poses a security risk. Do you want to continue? [Yes] [No]"
>
>I have Microsoft's Visual Studio installed so I am offered a debug option.
>
>If I click "No" then I get your "Permission denied" error on the line:
>
> xmlhttp.Open();
>
>Its saying that this page does not have access to this object.
>
>I've only used this technique inside of scripts not hosted Web pages.
>
>You might experiment with changing your browser's security settings.
>
Thanks McKirahan.
Regarding changing the browser's security settings, since this
page/scirpt wil be run from a host server by many people, I don't want
them all to have to change their browser's settings. So, I'm looking
for a coding solution, if possible.
Thanks,
Don
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
- Next message: Dave Anderson: "Re: Canceling the change in <select>"
- Previous message: Erencans: "CheckBox"
- In reply to: McKirahan: "Re: Trouble executing ActiveXObject"
- Next in thread: McKirahan: "Re: Trouble executing ActiveXObject"
- Reply: McKirahan: "Re: Trouble executing ActiveXObject"
- Reply: Steve van Dongen [MSFT]: "Re: Trouble executing ActiveXObject"
- Reply: Christoph Basedau: "Re: Trouble executing ActiveXObject"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|