[quoted text, click to view] "Nicole Calinoiu" <nicolec@somewhere.net> wrote in message news:<eLpQ629bEHA.2520@TK2MSFTNGP12.phx.gbl>...
> Anders,
>
> Since you haven't mentioned exactly what your code is doing when the
> exception is raised, it's a wee bit difficult to even begin to guess what
> permission is being denied. That said, using an ActiveX control might be
> overkill if you merely need to make HTTP requests to multiple servers from
> within one page. Have you considered using frames or iframes instead?
>
Yes, I tried to use javascript to control a frame or iframe, but when
the frame enters a different domain, i have no access to the
frame-object anymore.
The main purpose is to access a few different webservers, and present
the result on one page.
ex:
alert(myFrame.document.form1.innerHTML); // <- this line works fine
myFrame.location = "http://www.somedomain.com";
// maybe wait for page to be redirected
// and when loaded:
alert(myFrame.document.form1.innerHTML); // <- this line gives me an
"Access is denied" exception
I have also tried to use MSXML2.XMLHTTP and similar:
var xmlhttp = new ActiveXObject("MSXML2.XMLHTTP");
xmlhttp.open("GET", "http://www.somedomain.com", false);
xmlhttp.send();
But this gives me an "Permission denied" exception.
So my thoughts was if i could make an ActiveX that were thrusted by
the browser to access remote servers, it would work.
Or is there a way to programaticly add a website to the "Trusted
zone", giving the user a question if he/she wants to approve the code?