Dale, Try document.documentElement.innerHTML instead.
David Dale wrote: > Great starting point: java-firefox-extension... thanks for that! > > 1) added a "setDocumentContent(String)" method to the Test class. > > 2) I call that from the JavaFirefoxExtension.doIt = function() > (in the browser-overlay.js) using > "test.setDocumentContent(document.innerHTML);" > > It runs my code, but all I get in my String is "undefined". I was hoping > that my String would be populated with the html (i.e. like "view page > source"). > > I'm comfortable with Java, so I'm trying to get out of JavaScript-land > quickly by just passing the whole page over. Is this going to take more > than just a few lines in JavaScript? If just a few lines, would someone > have some advice on where those well-crafted lines might go, and what > they might contain? > > --Dale-- > > > > > _______________________________________________ > General mailing list > [email protected] > http://simile.mit.edu/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
