Hi all,
When using AJAX and javascript I get the following error when
talking to my server:
A script from http://www.mydomain.com was denied UniversalBrowse rRead
privileges. I am using firefox 1.5 and here is the code that is being
called:
function showConsumption Data(foodType) {
var url =
'http://mydomain.com/platePyramid.do ?foodType=' +
foodType+'&sysT ime='+new Date().getTime( );
if (window.XMLHttp Request) {
try {
netscape.securi ty.PrivilegeMan ager.enablePriv ilege("Universa lBrowserRead");
req = new XMLHttpRequest( );
req.onreadystat echange = processSCReques t;
req.open("GET", url, false);
req.send(null);
}
catch (e)
{
alert("(Mozilla )-"+e);
}
} else if (window.ActiveX Object) {
req = new ActiveXObject(" Microsoft.XMLHT TP");
req.onreadystat echange = processSCReques t;
req.open("GET", url, false);
req.send(null);
}
}
The .js files is contained in its own file, being called by the .hrml
file. Could this be causing the problem? I am stumped. Any help would
be appreciated
Regards,
Steven H.