[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 594
  • Last Modified:

Walking the DOM with a Delphi app called from a Firefox extension

Yeah, well, some Delphi guru may be working with Mozilla and Firefox.

Firefox extensions more or less, it seems to me, rely on js. Is there some way we can write a delphi app or com object, callable from js,  that can pick up a pointer to the document in the Firefox browser and then walk the DOM from there?
0
Mutley2003
Asked:
Mutley2003
  • 4
  • 3
1 Solution
 
Wim ten BrinkSelf-employed developerCommented:
I think the security mechanism would get in your way. It depends on the concept from where your app calls the DOM of Mozilla but I don't think you would get easy access to it.
0
 
Mutley2003Author Commented:
hmm, not good news. If you are programming IE extensions the "security mechanism" does not "get in your way".
0
 
Eddie ShipmanAll-around developerCommented:
Why not walk the DOM in the javascript?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Mutley2003Author Commented:
Hi Eddie
Yes I could do that I guess. But what if I wanted to do something that could best be done in Delphi, like, for example

a) displaying a nice treeview of the DOM or the images using Mike Lischke's Virtual Treeview

b) dynamically modifying the DHTML based on an analysis of the keywords

I'd rather write "analysis" type applications in Delphi than in js

So, any ideas ?
 
0
 
Eddie ShipmanAll-around developerCommented:
I have written a couple of Firefox extensions but they were merely modifications
of existing ones. I haven't looked too deeply into the task but I'll see what I can find out.
0
 
Eddie ShipmanAll-around developerCommented:
I do know that getting to the DOM from outside of Firefox is a very, should I say, hidden thing. I can get no one to
answer my questions on how to get the IHTMLDocument2 from a running instance of Firefox.
0
 
Mutley2003Author Commented:
Eddie
Is there some way one can pass through external.menuArguments.document to a COM object via js..
0
 
Eddie ShipmanAll-around developerCommented:
????
I have NO IDEA!
????
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now