views:

241

answers:

1

Hello,

I'm writing a toolbar for Firefox using Javascript connected to a Java XPCOM component. I want it to send a receive URLs from an external application that the java end is connected to. I can send the URL just fine, and I can load an incoming URL if I know one is there, but it's missing something crucial. There is no way for the user to know if the java end has a new URL. I can make the javascript run java routines, but I can't find a way to go the other way. I suppose I could create a javascript thread the continually polls the java end, but I'm hoping there is a more graceful solution than that.

Thanks!

A: 

Can you provide an example of how you're calling Java from Javascript?