------------------------------------------ The FireGoose Gaggle Toolbar for Firefox ------------------------------------------ A Firefox Extension that connects the gaggle to the web through the firefox browser. ------------------------------------------------------------------------------ By: Christopher Bare cbare at systemsbiology org. Based on previous work by Paul Shannon. With components from the java-firefox-extension found here: http://simile.mit.edu/java-firefox-extension/. Created in the Baliga lab at the Institute for Systems Biology. ------------------------------------------------------------------------------ Technologies: XUL, javascript, Java 5, RMI, Gaggle See http://gaggle.systemsbiology.org Naming Convention Prefixes: fg_ - XUL widgets fgcmd_ - XUL command elements FG_ - global javascript variable and functions Calling Java from Javascript: ---------------------------- Some features would be less awkward if I could invoke javascript from java, for example show and hide. I tried using the JSObject, which is how you'd do it in an applet. It seemed to work except for using the "call" method. Maybe a security issue? You have to use a "mayscript" attribute to give an applet permission to call into javascript. I can't do that from an extension, so maybe that's the problem. Import website handler: ---------------------- Load a js file in the browser, then select the menu item "Tools|Firegoose| Import Website Handler". The js will be eval'ed. This is useful for loading new or experimental website handlers. The file websiteHandler.js is an example of the interface a script must implement to be a website handler.