I have a function:

function getConfigXML(completion)
{
    var parseThenComplete = function(response)
        {
            if (response.status != 200) response.responseXML = null;
            else if (!response.responseXML)
response.responseXML = new DOMParser().parseFromString(response.responseText, 'text/xml');
            completion(response.responseXML);
        };

    GM_xmlhttpRequest(
        {
            method: 'GET',
            url: configURL,
            onload: parseThenComplete,
            onerror: parseThenComplete,
            headers: { Accept: 'text/xml, application/xml' },
        });
}

that worked fine pre-1.1, but on 1.1 I'm getting

Error: Permission denied to access property 'responseXML'


on the else if (!response.responseXML) line. I have an @grant GM_xmlhttpRequest. That parsing code is basically identical to what's at http://wiki.greasespot.net/GM_xmlhttpRequest.

Any ideas?

Thanks,
Brian

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to