Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

call Javascript function from OUTSIDE the browser?

I have a Windows tray application that needs to communicate with my web-application, especially displaying incoming call information.

The telephony-application (ProCall) can start applications when a call-event is received.

I could open a specific URL in a new browser window, but ideally I would like to start a Javascript function of an EXISTING browserwindow and then do it with AJAX.

Is this even possible?

like image 944
Dylan Avatar asked Nov 04 '22 14:11

Dylan


1 Answers

You could have your application talking to a local service via AJAX (with polling) or COMET and have the tray application either host that service or talk to that service. That way you could have a pretty easy channel of communication from your browser to the tray application.

Otherwise you're looking at something like an active x control as far as I know.

like image 54
Allen Rice Avatar answered Nov 09 '22 06:11

Allen Rice