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] communication between firefox and external python program
by Shane Caraveo other posts by this author
Jul 6 2008 11:43AM messages near this date
view in the new Beta List Site
[pyxpcom] communication between firefox and external python program | Re: [pyxpcom] communication between firefox and external python program
You might want to consider something simple, like json-rpc.  There is a 
json-rpc extension that works with firefox in the Open Komodo repository 
at http://svn.openkomodo.com/openkomodo/browse/addons/sdconnector (see 
http://blogs.activestate.com/shanec/2008/05/jssh-replacemen.html) and 
you can find json-rpc modules for python by search google for "json rpc 
python".

Another option could be xml-rpc, not sure if there it a full 
implementation (both client and server) for firefox.
Shane

MOUNIR ERRAMI wrote:
>    All
>  I have a very simple question, yet I can't seem to find an answer, and I 
>  don't even think that XPCOM (and PyXPCOM) is it. Is there a way to send 
>  information from a firefox extension (i.e in javascript) to an external 
>  python program? For instance:
>  1) in javascript I add a button to a webpage with an eventListener.
>  2) onclick, some function is called. Ideally this function would send 
>  some information (a string)
>  3) a separate standalone python program (running locally, and that would 
>  have nothing to do with firefox) would be listening and would intercept 
>  the string and use it and do something with it.
>  
>  I have thought of using sockets, or writing files with javascript etc... 
>  But I am unable to find a solution of this problem. For comparison, the 
>  python win32com module allows to connect to IE. It seems that the same 
>  thing is not possible with firefox. It also seems that the starting 
>  point for inter-process communication (if possible at all with ff) would 
>  start inside an extension.
>  
>  I am not sure if I am clear or not. I would appreciate any help or 
>  pointer that could get me started.
>  
>  Thank you very much.
>  
>  M.E.
>  
>  Use video conversation to talk face-to-face with Windows Live Messenger. 
>  Get started. 
>  <http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_mess
enger_video_072008> 
>  
>  
>  ------------------------------------------------------------------------
>  
>  _______________________________________________
>  pyxpcom mailing list
>  pyxpcom@[...].com
>  To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
pyxpcom mailing list
pyxpcom@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Mounir Errami
Shane Caraveo
Mounir Errami
Mounir Errami
Philip Semanchuk
Mounir Errami
Atul Varma
Mounir Errami

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved