[thelist] Javascript question
Damien Cola
damien.cola at synaptique.co.uk
Mon May 21 09:33:15 CDT 2001
Hello, I get an error of the type
"access disallowed from scripts at http://sitea.synapdev.com/tag.htm
to documents at another domain."
basically, on sitea I have a call to a javascript
<script language="javascript"
src="http://sited.synapdev.com/javascript.js"></script>
and my javascript looks like this:
cm_arg =
"http://sitee.synapdev.com/"+CM_CLIENT+"_v?RUB="+CM_RUBRIQUE+"&SEC="+C$
cm_arg+="&TL="+top.location.href+"&RF="+document.referrer;
// do we want to know about screen resolution and color depth ?
//
s=screen;r=s.width;c=(navigator.appName!="Netscape")?s.colorDepth:s.pixelDep
$
// cm_arg+="&RES="+r+"&COL="+c;
i = new Image(1,1);
i.src = cm_arg;
---
I have spotted the TOP.LOCATION.HREF is giving this error message when I
have the page sitea.synapdev.com/tag.htm embbed in a frameset (the frameset
is from yet another site, siteb.synapdev.com)
I wonder if this error comes from my server setup (?) or if it is a
javascript feature that can be worked around.. ?
My goal being to get top.location.href (it should give
http://siteb.synapdev.com/frameset.htm )
Anyone can help me? Any idea at all?
More information about the thelist
mailing list