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 UniversalBrowserRead
privileges. I am using firefox 1.5 and here is the code that is being
called:
function showConsumptionData(foodType) {
var url =
'http://mydomain.com/platePyramid.do?foodType=' +
foodType+'&sysTime='+new Date().getTime();
if (window.XMLHttpRequest) {
try {
netscape.security.PrivilegeManager.enablePrivilege ("UniversalBrowserRead");
req = new XMLHttpRequest();
req.onreadystatechange = processSCRequest;
req.open("GET", url, false);
req.send(null);
}
catch (e)
{
alert("(Mozilla)-"+e);
}
} else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
req.onreadystatechange = processSCRequest;
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.