• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XPathResult methods and properties not working greasemonkey userscript

 
Mahesh Chandran
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have installed greasemonkey plug-in for Firefox (my FF version is 21.0). I wrote a userscript named mahesh.user.js



Now when I print the following



The Firebug debugger writes out the XPathResult object. But I am unable to use any of the XPathResult properties such as snapshotLength or methods such as iterateNext() or snapshotItem(). Nothing gets printed on the console if I do this.

i.e.



Nothing gets printed on the console except for the first "I am here".

Need help please. Kindly advice.

Regards Mahesh.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic