Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Webpage Element Information

by Your Mother (Bishop)
on Nov 14, 2007 at 21:48 UTC ( #650856=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://650856]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2020-07-07 09:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?