Solved

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

Posted on 2004-10-04
9
564 Views
Last Modified: 2013-11-19
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
Comment
Question by:Mutley2003
  • 4
  • 3
9 Comments
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 12215801
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
 

Author Comment

by:Mutley2003
ID: 12257023
hmm, not good news. If you are programming IE extensions the "security mechanism" does not "get in your way".
0
 
LVL 26

Expert Comment

by:EddieShipman
ID: 12468468
Why not walk the DOM in the javascript?
0
 

Author Comment

by:Mutley2003
ID: 12470561
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 26

Expert Comment

by:EddieShipman
ID: 12472700
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
 
LVL 26

Accepted Solution

by:
EddieShipman earned 500 total points
ID: 12472711
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
 

Author Comment

by:Mutley2003
ID: 12480566
Eddie
Is there some way one can pass through external.menuArguments.document to a COM object via js..
0
 
LVL 26

Expert Comment

by:EddieShipman
ID: 12483286
????
I have NO IDEA!
????
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now