Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Webpage Element Information

by Your Mother (Archbishop)
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?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2021-03-05 13:31 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (112 votes). Check out past polls.