Re: Trouble executing ActiveXObject

From: Don (no_at_adr.com)
Date: 09/22/04


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! =-----



Relevant Pages

  • Re: Apple Maill wont send
    ... you can't know that what you're saying is correct. ... host whether SMTP authentication is used, which type, and whether or not ... to server succeeded". ...
    (comp.sys.mac.apps)
  • Re: Some advice.
    ... Are you saying that you want to find an existing server to host ... your games, or that you want to find software that will allow ...
    (rec.games.backgammon)
  • Re: Video streaming with c#
    ... I'm not saying use their code, ... Even in peer-to-peer you can set up a web server or video streaming ... Then you'll need to implement RTSP, RTP, SDP and a host of other ...
    (microsoft.public.dotnet.languages.csharp)
  • gdm hangs
    ... gdm will hang 9 of 10 times when logging out. ... with or without the client having been connected to the Server. ... # Timed login, useful for kiosks. ... Must output the chosen host on stdout, ...
    (Debian-User)
  • problem with sendmail in solaris 9
    ... names that should be exposed as from this host, ... # save Unix-style "From_" lines at top of header? ... # work recipient factor ... # SMTP STARTTLS server options ...
    (SunManagers)

Loading