I'm looking at possibly using (py)xpcom to continue with some
work I've started in JavaScript. But before I get into what
looks like a pretty steep learning curve, I want to check my
understanding and ask a few other questions, to make sure this
is a good way to go for me.

First, I need to have access to the DOM, plus the various other
things that JavaScript has access to, such as events, including
nonstandard stuff such as keyboard events. Does xpcom give me
that?

Second, my understanding is that when using xpcom to control
the browser/DOM from another language than javascript, xpcom
interfaces are "imported" into the other language somehow, and
then code in that language can be called on those interfaces,
with some amount of automatic type conversion going on. Is this
correct? My goal would be to build a pythonic library
that would then let me forget about xpcom.

Also, could anyone direct me to examples (preferably pyxpcom 
examples) of how xpcom can in fact be used to manipulate the
DOM from another language? All of the examples I've found so
far have been more or less the equivalent of "Hello, world."

And, how are things handled when the DOM/browser is being
manipulated both from xpcom calls and JavaScript? Is there some
sort of synchonization mechanism?

Finally, one of the things that got me looking at pyxpcom
again was the page http://kb.mozillazine.org/Standalone_PyXPCOM,
which describes building a "standalone" pyxpcom, i.e. one that
does not require building Mozilla. (I suspect that getting
a complete Moz build to work is beyond my capabilities.) Does
anyone know if this will still work, and if it will work
on OS X and Firefox (or does it require the complete Moz
application to build against.)

I appreciate any advice you can give,
Ken
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to