HI! I develop sites for fun but this one is a bit complex and I need help for a fancy trick.
I have this list of links and I wanted them all to be checked for broken URL. I have the whole system set up and it works perfectly fine as long as I run it from:
http://localhost/animelist/main.html
if I use my own IP:
http://213.22.16.159/animelist/main.html
it wont run.. the problme is in this lines of code:
function checklink(id,address) {
try {
resposta = new ActiveXObject("Msxml2.XMLHTTP");
resposta.open("GET",address,false);
resposta.send();
//bla bla
}
catch(e){
if ((e.number & 0xFFFF)==70) {
//error caused by IE permission
}
else {
//error: server doesnt exist
}
}
}
this is a rather KISS function and I wanna keep it this simple! a lot of guy show me other code.. I really want this code to do the trick.. unfortunatly i discovered that the error was the #70 meaning premission denied.. I changed my IE security permissions to LOWEST level and it worked.. unfortunatly I want it to work with MEDIUM level.
Can anyone help me or at least tell me why this component can't be loaded?
I've tried ActiveXObject("Microsoft.XMLHTTP"); and it works exctaly the same way..
Why doesn't this control even ASK to be runt?! it simple doesnt work when security is medium! is there any MINOR change to this script that will put it to work?
THANK YOU VERY MUCH FOR YOUR HELP! I really believe you guys are top webprogrammers and may help me :)
Pedro Duarte
#Portugal