Re: [pyxpcom] Inline Python in XUL application for calling XULbrowsergoBack() method
by Mark Hammond other posts by this author
Aug 10 2007 8:31AM messages near this date
view in the new Beta List Site
Re: [pyxpcom] Inline Python in XUL application for calling XUL browsergoBack() method
|
Re: [pyxpcom] Inline Python in XUL application for calling XULbrowsergoBack() method
> Given that you're not familiar enough with these specific
> elements, where would *you* go to figure out which interfaces
> are implemented by my surface object (it's a <browser> XUL
> element) and do you have a snippet of code that exemplifies
> the retrieval of an object (via getElementById(), and the
> application of that interface so that the
> goBack() method can be called?
I'd start simply by printing a repr() of the fetched object. An XPCOM
object will generally list the interfaces known on the object. Or, I'd
approach it from the other direction - determine the interface I need and
try to work out, via lxr, which objects implement that interface. Sadly,
there are still some facilities that are exposed in a JS specific way - eg,
window.open() is such a method - but assuming you are using the nsdom work,
it should be possible to trick things into executing JS code (I think I
emailed some details on that a few weeks ago).
Sadly I'm travelling at the moment and don't even have a mozilla source tree
on the laptop I have in front of me.
Cheers,
Mark
_______________________________________________
pyxpcom mailing list
pyxpcom@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Ryan Sturmer
Mark Hammond
Ryan Sturmer
Mark Hammond
Ryan Sturmer
|