Hello:
We are trying to analize the content of a web page using the document object.
The porpuse is to load a web page a get the links list and the url list.
This is the code we are using:
[CODE]<html>
<head>
</head>
<script>
function whenLoaded(){
f = top.frames[0].document;
numlinks= f.links.length;
alert(numlinks);
}
</script>
<FRAMESET cols=”50%,*” onload=”whenLoaded()” >
<FRAME bordercolor=”#CCCCCC” src=”http://www.google.es”>
<FRAME bordercolor=”#CCCCCC” src=”./hiden.html”>
</FRAMESET>
</html>
The problem we face is a Javascript Error on line 6:
[CODE]
Line: 6
Char: 3
Error: Access denied
Code: 0
URL: [url]http://localhost:8080/Test.html[/url]
It seems we are breaking some security protecction, accessing the document object for another server.
Here are the questions:
Can we disable this security check (perform by the browser, we supose) ?
Is there any other way to get this information (the links array) ?
Thanks in advance.
gonzalo floria (Madrid)