J. Bobby Lopez
unread,Nov 8, 2008, 3:47:27 PM11/8/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MozLab
Hello,
I'm new to MozRepl, and don't have a lot of background with javascript
(I'm a perl guy). I'm learning both, but I'm running into a roadblock
trying to figure out how to save an HTML page via MozRepl.
First I thought that I might be able to issue a "Save As" from
MozRepl, using "document.execCommand('SaveAs'..", however that
apparently only works in IE.
Second, I figured that I might be able to dump the HTML for the entire
document in the MozRepl console, using something like "print
document.body.innerHTML;", but I'm at a loss as to the correct syntax,
or if this is even possible.
The goal is to get Firefox to save a page to a file, or MozRepl to
dump the full HTML for the page, so that I can intercept the data with
perl Expect module.
Would anyone have any suggestions on this?
Thanks very much.
Bobby