469,580 Members | 1,883 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,580 developers. It's quick & easy.

Permission Denied to documentElement

2
Running on Windows XP with Mozilla 2.0.0.4, I am experiencing a strange security issue.

Expand|Select|Wrap|Line Numbers
  1.  
  2. function loadXMLDoc(url,funcname) 
  3. {
  4.      try {
  5.     netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
  6.    } catch (e) {
  7.     alert("Permission UniversalBrowserRead denied.");
  8.    }
  9.       var req;
  10.     // branch for native XMLHttpRequest object
  11.     if (window.XMLHttpRequest) {
  12.         req = new XMLHttpRequest();
  13.     // branch for IE/Windows ActiveX version
  14.     } else if (window.ActiveXObject) {
  15.         req = new ActiveXObject("Microsoft.XMLHTTP");
  16.     }
  17.    req.onreadystatechange = function (){
  18.         if (req.readyState==4)
  19.         { 
  20.             if (req.status==200)
  21.             {
  22.                    funcname(req);        
  23.             }    
  24.           }   
  25.  
  26. // SNIP
  27.  
  28. //then in appendRSSCode (which was the function referenced in funcname)
  29.          var node = req.responseXML.documentElement;      
  30.  
Generates the error
[HTML]Error: [Exception... "'Permission denied to get property XMLDocument.documentElement' when calling method: [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no][/HTML]

both locally and remotely. I don't get it. At all... I'll keep digging, but has anyone else seen this?
Jun 12 '07 #1
4 3237
MrGado
2
Nothing? Nada?

I haven't found a solution either...
Jun 13 '07 #2
acoder
16,027 Expert Mod 8TB
Is this from a remote location?

See this link (if you haven't already)
Jun 13 '07 #3
Hi pal,

Have you got any solution for this problem. if yes please share with me (****) email removed - moderator

Thanks in advance.

Satish.G




Running on Windows XP with Mozilla 2.0.0.4, I am experiencing a strange security issue.

Expand|Select|Wrap|Line Numbers
  1.  
  2. function loadXMLDoc(url,funcname) 
  3. {
  4.      try {
  5.     netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
  6.    } catch (e) {
  7.     alert("Permission UniversalBrowserRead denied.");
  8.    }
  9.       var req;
  10.     // branch for native XMLHttpRequest object
  11.     if (window.XMLHttpRequest) {
  12.         req = new XMLHttpRequest();
  13.     // branch for IE/Windows ActiveX version
  14.     } else if (window.ActiveXObject) {
  15.         req = new ActiveXObject("Microsoft.XMLHTTP");
  16.     }
  17.    req.onreadystatechange = function (){
  18.         if (req.readyState==4)
  19.         { 
  20.             if (req.status==200)
  21.             {
  22.                    funcname(req);        
  23.             }    
  24.           }   
  25.  
  26. // SNIP
  27.  
  28. //then in appendRSSCode (which was the function referenced in funcname)
  29.          var node = req.responseXML.documentElement;      
  30.  
Generates the error
[HTML]Error: [Exception... "'Permission denied to get property XMLDocument.documentElement' when calling method: [nsIOnReadyStateChangeHandler::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no][/HTML]

both locally and remotely. I don't get it. At all... I'll keep digging, but has anyone else seen this?
Jul 10 '07 #4
acoder
16,027 Expert Mod 8TB
Hi pal,

Have you got any solution for this problem. if yes please share with me (****) email removed - moderator

Thanks in advance.

Satish.G
Welcome to TSDN! Show your code (in code tags).
Jul 11 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Mark E. Hamilton | last post: by
2 posts views Thread by Taishi | last post: by
reply views Thread by private.anders | last post: by
reply views Thread by private.anders | last post: by
4 posts views Thread by xzzy | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.