This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes XPathResult methods and properties not working greasemonkey userscript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "XPathResult methods and properties not working greasemonkey userscript" Watch "XPathResult methods and properties not working greasemonkey userscript" New topic
Author

XPathResult methods and properties not working greasemonkey userscript

Mahesh Chandran
Greenhorn

Joined: Mar 23, 2011
Posts: 20
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.
 
jQuery in Action, 2nd edition
 
subject: XPathResult methods and properties not working greasemonkey userscript
 
Similar Threads
Download progress bar freezing up when downloading Jar files
How to use JSON & eval()
Javascript problem trying to invoke Axis service
Adding an object with an array, as a value of another object
console.log function not working.