On 5/24/2009 7:56 PM, (Terry Brooks) wrote:
> ...
> Attempt to use DOMParser. Gives error:
> Error: uncaught exception: ..."Node cannot be used in
> a document other than the one in which it was created"...
> //myXMLdocument = new DOMParser().parseFromString
> (responseDetails.responseText, 'text/xml');
> //var headings = document.evaluate("//binding", myXMLdocument,
> null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
You pass "myXmlDocument" to **document**.evaluate (where document===the
HTML document object of the page we're running against). You can't do that.
myXmlDocument.evaluate(...)
Works fine.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---