Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-10-04
9
Medium Priority
?
591 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
8 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to count occurrences of each item in an array.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

824 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