Solved

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

Posted on 2004-10-04
9
574 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

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
 
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

770 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