Permission Denied to documentElement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MrGado
    New Member
    • Jun 2007
    • 2

    Permission Denied to documentElement

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

    Code:
    function loadXMLDoc(url,funcname) 
    {
    	 try {
        netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
       } catch (e) {
        alert("Permission UniversalBrowserRead denied.");
       }
    	  var req;
        // branch for native XMLHttpRequest object
        if (window.XMLHttpRequest) {
            req = new XMLHttpRequest();
        // branch for IE/Windows ActiveX version
        } else if (window.ActiveXObject) {
            req = new ActiveXObject("Microsoft.XMLHTTP");
        }
       req.onreadystatechange = function (){
       	 if (req.readyState==4)
    	    { 
    	    	if (req.status==200)
    		    {
    		      	 funcname(req);		
    		    }	
    		  }   
    
    // SNIP
    
    //then in appendRSSCode (which was the function referenced in funcname)
     		var node = req.responseXML.documentElement;
    Generates the error
    [HTML]Error: [Exception... "'Permissio n denied to get property XMLDocument.doc umentElement' when calling method: [nsIOnReadyState ChangeHandler:: handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_J S_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?
  • MrGado
    New Member
    • Jun 2007
    • 2

    #2
    Nothing? Nada?

    I haven't found a solution either...

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Is this from a remote location?

      See this link (if you haven't already)

      Comment

      • satishgsk
        New Member
        • Jul 2007
        • 1

        #4
        Hi pal,

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

        Thanks in advance.

        Satish.G




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

        Code:
        function loadXMLDoc(url,funcname) 
        {
        	 try {
            netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
           } catch (e) {
            alert("Permission UniversalBrowserRead denied.");
           }
        	  var req;
            // branch for native XMLHttpRequest object
            if (window.XMLHttpRequest) {
                req = new XMLHttpRequest();
            // branch for IE/Windows ActiveX version
            } else if (window.ActiveXObject) {
                req = new ActiveXObject("Microsoft.XMLHTTP");
            }
           req.onreadystatechange = function (){
           	 if (req.readyState==4)
        	    { 
        	    	if (req.status==200)
        		    {
        		      	 funcname(req);		
        		    }	
        		  }   
        
        // SNIP
        
        //then in appendRSSCode (which was the function referenced in funcname)
         		var node = req.responseXML.documentElement;
        Generates the error
        [HTML]Error: [Exception... "'Permissio n denied to get property XMLDocument.doc umentElement' when calling method: [nsIOnReadyState ChangeHandler:: handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_J S_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?
        Last edited by acoder; Jul 11 '07, 09:06 AM. Reason: removed email

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Originally posted by satishgsk
          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).

          Comment

          Working...