ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pyxpcom
pyxpcom
Re: [pyxpcom] Inline Python in XUL application for calling XULbrowsergoBack() method
by Ryan Sturmer other posts by this author
Aug 10 2007 10:03AM messages near this date
view in the new Beta List Site
Re: [pyxpcom] Inline Python in XUL application for calling XULbrowsergoBack() method | [pyxpcom] firefox web testing
I actually found another post that addresses this very same issue:

http://aspn.activestate.com/ASPN/Mail/Message/pyxpcom/3517059

Apparently, the methods I'm interested are javascript specific, and
can't be accessed via python.

-R

On 8/10/07, Mark Hammond <mhammond@[...].au>  wrote:
>  > 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
> 
> 


-- 
"Time is an illusion.  Lunchtime, doubly so."

Ryan Sturmer
ryansturmer@[...].com
http://www.gogglemarks.net/
_______________________________________________
pyxpcom mailing list
pyxpcom@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Ryan Sturmer
Mark Hammond
Ryan Sturmer
Mark Hammond
Ryan Sturmer

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved