Error:Access to restricted URI denied" code: "1012
code line:
if (rpc)
{
this.xmlDoc.setRequestHeader(“User-Agent”, “dhtmlxRPC v0.1 (”+navigator.userAgent+")");
this.xmlDoc.setRequestHeader(“Content-type”, “text/xml”);
}
else if (postMode)
this.xmlDoc.setRequestHeader(‘Content-type’, ‘application/x-www-form-urlencoded’);
this.xmlDoc.setRequestHeader(“X-Requested-With”,“XMLHttpRequest”);
this.xmlDoc.send(null||postVars); //***********ERROR LINE
if (!this.async)
(new this.waitLoadFunction(this))();
};
Please help me, and give a solution for above error.
Hello,
Same error here (but with scheduler component). I found a very nasty resolution : add a php sleep(1) before the render sql statement…
I think, there is a micmac with ajax callback / time lag ? and ‘sometimes’ - but more often with Firefox+firebug.
My development : I integrated a dhtmlxscheduler into a joomla component, and my load ajax call is made from a SEO encoded url…
A very strange comportment :
If I call directly the XHR url : no problem
If I deactivate the SEO : no problem
It occurs only with SEO+Ajax/javascript call…
I’m really not sure how sleep works, but such error as
Error:Access to restricted URI denied" code: "1012
Can appear if
a) your url is invalid, so it not recognized as valid url at all
b) you are using different domain name than domain name of main page, and as result of cross domain security, request is blocked.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan