http://qs321.pair.com?node_id=650856


in reply to Webpage Element Information

If I understand you correctly, this is not currently possible with Perl (though I don't know the Win32 stuff well enough to be sure; it has some good hooks into IE and JS IIRC). What you probably want is to write your own Firefox extension in JS and XPCOM. They have lots of docs including this one for IO stuff.

Replies are listed 'Best First'.
Re^2: Webpage Element Information
by jZed (Prior) on Nov 14, 2007 at 22:00 UTC
    While the web-developer plugin is a nice tool, it seems a rather round-about way to get the DOM structure into a a file or script. Why would someone want to do it that way instead of just using existing tools in JavaScript or Perl to get the same information?

      I took position (mistakenly) to mean X/Y which is available out of the broswer only and he wants to write it to a file in response to a mouse action. So I thought of chrome. Upon reflection though (thanks for calling me on it) there is obviously a Perl/JS solution. I'm playing around with one right now, Ajax. If I can finish something concise and correct I'll follow up with it.