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
[pyxpcom] communication between firefox and external python program
by Mounir Errami other posts by this author
Jul 5 2008 5:34PM messages near this date
view in the new Beta List Site
Re: [pyxpcom] Problems distributing Xulrunner + Pyxpcom | Re: [pyxpcom] communication between firefox and external python program
All
I have a very simple question, yet I can't seem to find an answer, and I don't even think th
at 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 st
ring)
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 connec
t to IE. It seems that the same thing is not possible with firefox. It also seems that the s
tarting point for inter-process communication (if possible at all with ff) would start insid
e 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.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messeng
er_video_072008
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