[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Embedding Ruby in Firefox addons.

John Carter

4/19/2007 2:48:00 AM

1 Answer

Clifford Heath

4/19/2007 11:35:00 PM

0

John Carter wrote:
> Does anyone have a "hello world" firefox addon that will allow the
> user to enter a parameter and then invoke a ruby script with that
> parameter and display the result in a firefox window?

I think the right way to do this is to use Camping to build
the app, and when you launch it, to use one of the browser
communication APIs to make an existing browser open a new
tab, or to launch a configured browser, on the localhost URL
that the Camping app is serving. That way it'll work on a
wider range of browsers.

I have a collection of code snippets for such browser
communications. One for the Mac, one a Netscape Unix X-Windows
thing, and a couple of different methods for Windows. I plan
sometime to make these into a multi-platform Ruby extension
GEM that can be used in the way described. No promises as to
when however - I can't look at it for more than a month. If
someone else wants to do it, I can send what I have.

Clifford Heath.